Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas location lock improvement. #5749

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/qml/MapCanvas.qml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ Item {
//! Emitted when a release happens after a long press
signal longPressReleased(var type)

//! Emitted when a zoom action is about to occur, allowing for pre-zoom adjustments
signal aboutToZoom
nirvn marked this conversation as resolved.
Show resolved Hide resolved

/**
* Freezes the map canvas refreshes.
*
Expand Down
5 changes: 5 additions & 0 deletions src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,11 @@ ApplicationWindow {
}
}

onAboutToZoom: {
if (gnssButton.followActive)
gnssButton.followActiveSkipExtentChanged = true;
}

GridRenderer {
id: gridDecoration
mapSettings: mapCanvas.mapSettings
Expand Down
Loading