Skip to content

Commit

Permalink
reduce rotate gesture angle threshold (#5844)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Sep 18, 2024
1 parent c98c2fb commit fd73b78
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ open class MapFragment : Fragment(R.layout.fragment_map) {
map.uiSettings.isDisableRotateWhenScaling = true
// workaround for https://github.com/maplibre/maplibre-native/issues/2792
map.gesturesManager.moveGestureDetector.moveThreshold = resources.dpToPx(5f)
map.gesturesManager.rotateGestureDetector.angleThreshold = 1.5f

map.addOnMoveListener(object : MapLibreMap.OnMoveListener {
override fun onMoveBegin(detector: MoveGestureDetector) { listener?.onPanBegin() }
Expand Down

0 comments on commit fd73b78

Please sign in to comment.