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

Compass displayed even when needing calibration #332

Open
PaulWalks opened this issue Feb 11, 2023 · 1 comment
Open

Compass displayed even when needing calibration #332

PaulWalks opened this issue Feb 11, 2023 · 1 comment

Comments

@PaulWalks
Copy link

It seems the compassneedscalibration event is only supported in Edge browser, so the compass always continues to display.

Is there any alternate way of removing the compass if it is currently inaccurate / needing calibration?

@PaulWalks
Copy link
Author

PaulWalks commented Feb 11, 2023

Could put in a check for webkitCompassAccuracy < 25 (degrees) before displaying compass on Safari. Not sure if there is a solution that can work on uncalibrated / inaccurate Android phones?

It's a safety issue in many circumstances that wrong compass directions can be shown. Any input appreciated.

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

1 participant