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

Chrome 5.0 deviceorientation event handling has changed #22

Open
donbarthel opened this issue May 2, 2016 · 5 comments
Open

Chrome 5.0 deviceorientation event handling has changed #22

donbarthel opened this issue May 2, 2016 · 5 comments

Comments

@donbarthel
Copy link

See: https://developers.google.com/web/updates/2016/03/device-orientation-changes?hl=en

The deviceorientation event in Chrome has changed from 'world' (absolute coordinates) to 'game' (relative coordinates) matching Safari.

DeviceOrientation.js likely needs to be updated. Two options:

  1. Switch support for Chrome 5.0 to the 'game' processing. Or,
  2. Use the new deviceorientationabsolute event in Chrome 5.0 and continue to use 'world' processing.

It seems that the changes were rolled out a week ago (2016-04-25):

https://en.wikipedia.org/wiki/Google_Chrome_release_history

@janrg
Copy link

janrg commented Sep 25, 2016

I'm running into the same issue I think. Safari on iPhone behaves fine but with chrome (both Android and iOS), north aligns with the orientation of the device when the page is loaded.
Is this library still under development?

@jasan-s
Copy link

jasan-s commented Oct 30, 2016

I'm on chrome mobile ver 54.0.x and I can't seem to reproduce the issue. I still get absolute data from chrome on android.

@MrBlenny
Copy link

MrBlenny commented Feb 7, 2017

Has any progress been made on this? Is there a branch (or other library) where this has been fixed?

@MrBlenny
Copy link

I have made a fix on my branch. World positioning on android chrome is fixed as a result.

@mrotondo
Copy link

mrotondo commented May 2, 2017

Just confirmed that MrBlenny's branch fixes the currently-broken compass behavior in Chrome. Can that get turned into a pull request and integrated?

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

5 participants