Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgilbers committed Aug 27, 2024
1 parent 9d8b7d7 commit a269668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,6 @@ if (
window.addEventListener("deviceorientation", handleOrientation);

function handleOrientation(event) {
let orientation = event.webkitCompassHeading.toFixed(10)
let orientation = -event.webkitCompassHeading.toFixed(10)
map.setBearing(orientation)
}

0 comments on commit a269668

Please sign in to comment.