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

Getting inconsistent results on Android #28

Open
MastaBaba opened this issue Sep 7, 2018 · 4 comments
Open

Getting inconsistent results on Android #28

MastaBaba opened this issue Sep 7, 2018 · 4 comments

Comments

@MastaBaba
Copy link

On my Android phone, in both Firefox and Chrome, my compass (euler.alpha) is often off by 90 or 180 degrees. This seems to depend on the orientation at which I hold my phone when I open my browser.

How can I compensate for this?

@TimvanScherpenzeel
Copy link

You could keep track of the onorientationchange event

@MastaBaba
Copy link
Author

The discrepancy is not related to whether my phone is in landscape or portrait, but whether I open the app facing north, east, south or west.

@EXPSTUDIOmo
Copy link

Having the same problem, Any solution to this?

@MastaBaba
Copy link
Author

I sadly don't remember whether I solved this.

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