mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-05-19 23:14:46 +02:00
double tap on camera now zooms onto the camera
This commit is contained in:
@@ -42,8 +42,7 @@ class _CameraMapMarkerState extends State<_CameraMapMarker> {
|
||||
|
||||
void _onDoubleTap() {
|
||||
_tapTimer?.cancel();
|
||||
final c = widget.mapController.camera;
|
||||
widget.mapController.move(c.center, c.zoom + 1);
|
||||
widget.mapController.move(widget.node.coord, widget.mapController.camera.zoom + 1);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user