@@ -211,13 +211,14 @@ abstract class MapLibreMapState extends State<MapLibreMap>
211211
212212 if (doubleTapDown != null && options.gestures.zoom) {
213213 // double tap drag: zoom
214- debugPrint ('Double tap drag zoom detected $doubleTapDown ' );
214+ // debugPrint('Double tap drag zoom detected $doubleTapDown');
215215 final lastY = lastEvent? .focalPoint.dy ?? startEvent.focalPoint.dy;
216216 final iOS = Theme .of (context).platform == TargetPlatform .iOS;
217217 var deltaY = details.focalPoint.dy - lastY;
218218 if (iOS) deltaY = - deltaY;
219219 final newZoom = camera.zoom + deltaY * 0.01 ; // sensitivity
220220 moveCamera (zoom: newZoom.clamp (options.minZoom, options.maxZoom));
221+
221222 } else if ((buttons & kSecondaryMouseButton) != 0 || ctrlPressed) {
222223 // secondary button: pitch and bearing
223224 final lastPointerOffset = lastEvent? .focalPoint ?? startEvent.focalPoint;
@@ -232,11 +233,12 @@ abstract class MapLibreMapState extends State<MapLibreMap>
232233 }
233234 final newZoom = camera.zoom;
234235 if (options.gestures.zoom) {
235- // TODO adjust for globe projection
236+ // TODO adjust newZoom for globe projection
236237 }
237238 moveCamera (bearing: newBearing, pitch: newPitch, zoom: newZoom);
239+
238240 } else if ((buttons & kPrimaryMouseButton) != 0 ) {
239- // primary button: pan, zoom, bearing
241+ // primary button: pan, zoom, bearing, pinch
240242
241243 // zoom
242244 var newZoom = camera.zoom;
0 commit comments