Skip to content

Commit e26b940

Browse files
committed
Take map canvas orientation into consideration for the the preview quadrants selection strategy
1 parent 5c1ae26 commit e26b940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qml/qgismobileapp.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2210,7 +2210,7 @@ ApplicationWindow {
22102210
if (triggerRecenter || forceRecenter) {
22112211
if (positionSource.positionInformation.directionValid) {
22122212
// Prioritize preview quadrants based on movement direction
2213-
const direction = positionSource.positionInformation.direction;
2213+
const direction = (positionSource.positionInformation.direction + (mapCanvas.mapSettings.rotation + 360)) % 360;
22142214
if (direction >= 337.5 || direction < 22.5) {
22152215
// moving ~north
22162216
mapCanvasMap.previewJobsQuadrants = [1, 2, 0, 5, 3, 8, 6, 7];

0 commit comments

Comments
 (0)