Skip to content

Commit 392b049

Browse files
authored
fix: stop ongoing animations when scroll zooming (#2066)
1 parent cdb3b23 commit 392b049

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/gestures/map_interactive_viewer.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,10 @@ class MapInteractiveViewerState extends State<MapInteractiveViewer>
466466
pointerSignal.localPosition,
467467
newZoom,
468468
);
469+
470+
_closeFlingAnimationController(MapEventSource.scrollWheel);
471+
_closeDoubleTapController(MapEventSource.scrollWheel);
472+
469473
widget.controller.moveRaw(
470474
newCenter,
471475
newZoom,

0 commit comments

Comments
 (0)