Skittyblock / LiveSafari

Turn MobileSafari's icon into a real compass
GNU General Public License v3.0
19 stars 4 forks source link

Fix on landscape mode #3

Open ghost opened 4 years ago

ghost commented 4 years ago

When I’m in iPad landscape mode, the magnetometer in the iPad is still acting like it’s in portrait mode. The photo I attached is me facing north in left landscape mode. The compass is off. 58207CE3-D13A-4AE5-A085-07172E0F7E8C Can you please fix this? Thanks!

Lissanro commented 4 years ago

This is an issue in iPhone too. In landscape mode it is pointing in wrong direction (off by 90 degrees). It should take screen rotation in account to calculate how to display correct direction of north.