From 585254219900cc4e87b26404f15e22d558cf76c6 Mon Sep 17 00:00:00 2001 From: JaffaKetchup Date: Thu, 27 Mar 2025 12:28:12 +0000 Subject: [PATCH] Stopped ongoing animations when a zoom event is recieved from a pointer --- lib/src/gestures/map_interactive_viewer.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/gestures/map_interactive_viewer.dart b/lib/src/gestures/map_interactive_viewer.dart index 14972de7b..124172ef6 100644 --- a/lib/src/gestures/map_interactive_viewer.dart +++ b/lib/src/gestures/map_interactive_viewer.dart @@ -466,6 +466,10 @@ class MapInteractiveViewerState extends State pointerSignal.localPosition, newZoom, ); + + _closeFlingAnimationController(MapEventSource.scrollWheel); + _closeDoubleTapController(MapEventSource.scrollWheel); + widget.controller.moveRaw( newCenter, newZoom,