adtile / Full-Tilt

Other
316 stars 71 forks source link

Getting inconsistent results on Android #28

Open MastaBaba opened 6 years ago

MastaBaba commented 6 years ago

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 commented 6 years ago

You could keep track of the onorientationchange event

MastaBaba commented 6 years ago

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 commented 9 months ago

Having the same problem, Any solution to this?

MastaBaba commented 9 months ago

I sadly don't remember whether I solved this.