Open donbarthel opened 8 years ago
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?
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.
Has any progress been made on this? Is there a branch (or other library) where this has been fixed?
I have made a fix on my branch. World positioning on android chrome is fixed as a result.
Just confirmed that MrBlenny's branch fixes the currently-broken compass behavior in Chrome. Can that get turned into a pull request and integrated?
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:
It seems that the changes were rolled out a week ago (2016-04-25):
https://en.wikipedia.org/wiki/Google_Chrome_release_history