Skip to content

Commit

Permalink
fix(navigation): map rotation wrong direction
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Nov 27, 2024
1 parent 02db05f commit 1753c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/services/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ const locationOnTouchMoveHandler = (e) => {
startAngle += angleDelta;
angleDelta = 0;
}
const newBearing = startBearing + angleDelta;
const newBearing = startBearing - angleDelta;

Globals.map.setZoom(newZoom, { around: Globals.map.getCenter() });
if (rotationEnabled) {
Expand Down

0 comments on commit 1753c18

Please sign in to comment.