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

Device Motion events not reaching Iframe (even Chrome 62 Android 7) #293

Closed
devasur opened this issue Nov 9, 2017 · 3 comments
Closed

Comments

@devasur
Copy link

devasur commented Nov 9, 2017

http://googlevr.github.io/webvr-polyfill/examples/basic/

works perfectly. When the same page is embedded in an IFRAME device motion events not reaching WebVR.

https://devasur.github.io/webvriframe/

How to fix? Earlier there was a special handling for synthetic event handling specific to iOS and Safari. But now it seems the problem is there with chrome also.

@devasur devasur changed the title Device Motion events to reaching Iframe (even Chrome 62 Android 7) Device Motion events not reaching Iframe (even Chrome 62 Android 7) Nov 9, 2017
@brianchirls
Copy link
Contributor

It seems that iOS blocks those events on all iframes, but other browsers block events on cross-origin iframes, which I imagine will be most cases.

See also #173 and #271.

@jsantell
Copy link
Contributor

jsantell commented Nov 9, 2017

Wonder if it's related to Chrome 62 in a WebView here #291

@jsantell
Copy link
Contributor

This looks like a duplicate of #271 -- the patch that fixes #271 also fixes the ability for Chrome to receive cross-origin synthetic devicemotion events.

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

3 participants