Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element order changes after exiting VR #165

Open
WoodNeck opened this issue Nov 28, 2022 · 0 comments
Open

Element order changes after exiting VR #165

WoodNeck opened this issue Nov 28, 2022 · 0 comments

Comments

@WoodNeck
Copy link

If the canvas element is not the only child within its parent / not a last element, the element order can be changed after exiting from the polyfilled XR session.

This can cause an issue where element order is important like some elements should be displayed above other elements.

Of course, this can be bypassed by applying CSS z-index or order to elements, but it would be nice if the polyfill preserve the elements' order.

before

image

in xr session

image

after

image

<canvas> is appended as the last element

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant