From edce0cbcca38bb553a1d6bb5180d27471c9f6a88 Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Mon, 18 Apr 2022 12:20:11 +0900 Subject: [PATCH] #229 map: prevent gesture combination on leaflet layers --- lib/widgets/common/map/leaflet/map.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/widgets/common/map/leaflet/map.dart b/lib/widgets/common/map/leaflet/map.dart index 764daffc8..6618cb87f 100644 --- a/lib/widgets/common/map/leaflet/map.dart +++ b/lib/widgets/common/map/leaflet/map.dart @@ -167,6 +167,8 @@ class _EntryLeafletMapState extends State with TickerProviderSt // TODO TLAD [map] as of flutter_map v0.14.0, `doubleTapZoom` does not move when zoom is already maximal // this could be worked around with https://github.com/fleaflet/flutter_map/pull/960 interactiveFlags: interactive ? InteractiveFlag.all : InteractiveFlag.none, + // prevent triggering multiple gestures at once (e.g. rotating a bit when mostly zooming) + enableMultiFingerGestureRace: true, onTap: (tapPosition, point) => widget.onMapTap?.call(point), controller: _leafletMapController, ),