From abdd49472733baf28f9adc617b420d8ba06b901e Mon Sep 17 00:00:00 2001 From: stopflock Date: Sun, 9 Nov 2025 13:44:51 -0600 Subject: [PATCH] Give up on configurable tap+drag zoom. Breaks double tap zoom. --- lib/widgets/map_view.dart | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/lib/widgets/map_view.dart b/lib/widgets/map_view.dart index 2416b54..4441936 100644 --- a/lib/widgets/map_view.dart +++ b/lib/widgets/map_view.dart @@ -284,7 +284,6 @@ class MapViewState extends State { } - void _refreshNodesFromProvider() { final appState = context.read(); _cameraController.refreshCamerasFromProvider( @@ -296,9 +295,6 @@ class MapViewState extends State { } - - - @override void didUpdateWidget(covariant MapView oldWidget) { super.didUpdateWidget(oldWidget); @@ -316,13 +312,6 @@ class MapViewState extends State { } - - - - - - - @override Widget build(BuildContext context) { final appState = context.watch(); @@ -554,10 +543,7 @@ class MapViewState extends State { initialCenter: _gpsController.currentLocation ?? _positionManager.initialLocation ?? LatLng(37.7749, -122.4194), initialZoom: _positionManager.initialZoom ?? 15, maxZoom: (appState.selectedTileType?.maxZoom ?? 18).toDouble(), - interactionOptions: InteractionOptions( - doubleTapDragZoomChangeCalculator: (verticalOffset, camera) { - return verticalOffset * kDoubleTapDragZoomSensitivity; - }, + interactionOptions: const InteractionOptions( scrollWheelVelocity: kScrollWheelVelocity, pinchZoomThreshold: kPinchZoomThreshold, pinchMoveThreshold: kPinchMoveThreshold, @@ -566,8 +552,6 @@ class MapViewState extends State { setState(() {}); // Instant UI update for zoom, etc. if (gesture) { widget.onUserGesture(); - - } if (session != null) {