From 1753c1898c5b12aafc3e7ad43103533858d022b8 Mon Sep 17 00:00:00 2001 From: "amaury.zarzelli" Date: Wed, 27 Nov 2024 13:18:12 +0100 Subject: [PATCH] fix(navigation): map rotation wrong direction --- src/js/services/location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/services/location.js b/src/js/services/location.js index 525fefca..9f7a2d13 100644 --- a/src/js/services/location.js +++ b/src/js/services/location.js @@ -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) {