From ad969475443a63f0a69159cfc21342f26d950380 Mon Sep 17 00:00:00 2001 From: urusai88 Date: Wed, 19 Oct 2022 20:20:48 +0300 Subject: [PATCH] ignore details.scale = 0 --- lib/src/gestures/gestures.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/gestures/gestures.dart b/lib/src/gestures/gestures.dart index 727933f77..3023fc714 100644 --- a/lib/src/gestures/gestures.dart +++ b/lib/src/gestures/gestures.dart @@ -387,7 +387,9 @@ abstract class MapGestureMixin extends State var mapRotated = false; if (hasMove || hasZoom) { double newZoom; - if (hasZoom) { + // checking details.scale to prevent situation whew details comes + // with zero scale + if (hasZoom && details.scale > 0.0) { newZoom = _getZoomForScale( _mapZoomStart, details.scale + _scaleCorrector);