Skip to content

Commit

Permalink
Canvas location lock improvement.
Browse files Browse the repository at this point in the history
Currently when the canvas location is locked and the user zooms in or out using a mouse the location lock is broken because the position of cursor also changes while zooming
Initial work plan: When the canvas location is locked the cursor placement will not change while zooming in or out.
  • Loading branch information
mohsenD98 committed Oct 19, 2024
1 parent d908dd5 commit 30ba94e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qml/MapCanvas.qml
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ Item {
grabPermissions: PointerHandler.CanTakeOverFromHandlersOfDifferentType | PointerHandler.ApprovesTakeOverByItems

onWheel: event => {
if (gnssButton.followActive)
gnssButton.followActiveSkipExtentChanged = true;
if (event.angleDelta.y > 0) {
zoomIn(point.position);
} else {
Expand Down

0 comments on commit 30ba94e

Please sign in to comment.