We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aabfa86 + 235d7ef commit a51da18Copy full SHA for a51da18
src/App.jsx
src/components/routes/RoutePage.jsx
@@ -103,8 +103,8 @@ function RoutePage() {
103
}, [bottomRef, pointsOfInterest]);
104
105
function deviceOrientationHandler(e) {
106
+ navigator.geolocation.getCurrentPosition(locationHandler);
107
setTimeout(() => {
- navigator.geolocation.getCurrentPosition(locationHandler);
108
const orientaionValue = e.webkitCompassHeading || Math.abs(e.alpha - 360);
109
setOrientation(orientaionValue);
110
}, 3000);
0 commit comments