Skip to content

Commit

Permalink
don't reset rotation to 0 on disabling navigation mode after all (fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Sep 9, 2024
1 parent 63c44ad commit 8e597cf
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -550,10 +550,9 @@ class MainMapFragment : MapFragment(), ShowsGeometryMarkers {

private fun onUpdatedNavigationMode() {
if (!isNavigationMode) {
updateCameraPosition(300) {
rotation = 0.0
tilt = 0.0
}
// don't reset the rotation to 0 here, because this behavior is useful (#5886)
// (users can always reset it by tapping on the compass)
updateCameraPosition(300) { tilt = 0.0 }
} else {
centerCurrentPositionIfFollowing()
}
Expand Down

0 comments on commit 8e597cf

Please sign in to comment.