Skip to content

Commit

Permalink
increase sensitivity of shove gesture (#5908)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Sep 18, 2024
1 parent c8c02df commit c52bf12
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ open class MapFragment : Fragment(R.layout.fragment_map) {
// workaround for https://github.com/maplibre/maplibre-native/issues/2792
map.gesturesManager.moveGestureDetector.moveThreshold = resources.dpToPx(5f)
map.gesturesManager.rotateGestureDetector.angleThreshold = 1.5f
map.gesturesManager.shoveGestureDetector.pixelDeltaThreshold = resources.dpToPx(8f)

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

0 comments on commit c52bf12

Please sign in to comment.