-
Notifications
You must be signed in to change notification settings - Fork 86
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
XRInputSourceArray #112
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The spec defines
session.inputSources
as a XRInputSourceArray, a stripped-down arraylike interface. The polyfill currently exposes it as a regular JS array instead.I ran into this when trying out Chrome beta's native implementation, where my polyfill-backed code was happily doing
inputSources.map(...)
which suddenly broke. The polyfill should implement theXRInputSourceArray
interface and expose that instead.I have a work in progress for this here - I welcome any suggestions or concerns with that approach before I work it up into a PR: https://github.com/lojjic/webxr-polyfill/tree/XRInputSourceArray
The text was updated successfully, but these errors were encountered: