diff --git a/lib/src/gestures/map_interactive_viewer.dart b/lib/src/gestures/map_interactive_viewer.dart index cb61d287e..9f1af5562 100644 --- a/lib/src/gestures/map_interactive_viewer.dart +++ b/lib/src/gestures/map_interactive_viewer.dart @@ -49,7 +49,6 @@ class MapInteractiveViewerState extends State var _pinchZoomStarted = false; var _pinchMoveStarted = false; var _dragStarted = false; - var _doubleTapDragZoomStarted = false; var _flingAnimationStarted = false; /// Helps to reset ScaleUpdateDetails.scale back to 1.0 when a multi finger @@ -691,7 +690,6 @@ class MapInteractiveViewerState extends State void _handleScaleEnd(ScaleEndDetails details) { _resetDoubleTapHold(); - _doubleTapDragZoomStarted = false; final eventSource = _dragMode ? MapEventSource.dragEnd : MapEventSource.multiFingerEnd; @@ -749,11 +747,6 @@ class MapInteractiveViewerState extends State final relativePosition = position.relative; if (relativePosition == null) return; - // Prevent the onTap event from being registered if any drag is already - // happening. For example, when a double-tap-drag-zoom gesture starts, this - // prevents registering an onTap event as well. - if (_doubleTapDragZoomStarted) return; - widget.controller.tapped( MapEventSource.tap, position, @@ -854,7 +847,6 @@ class MapInteractiveViewerState extends State final flags = _interactionOptions.flags; if (InteractiveFlag.hasDoubleTapDragZoom(flags)) { - _doubleTapDragZoomStarted = true; final verticalOffset = (_focalStartLocal - details.localFocalPoint).dy; final newZoom = _mapZoomStart - verticalOffset / 360 * _camera.zoom;