mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-10-02 22:16:58 +02:00
double tap on camera now zooms onto the camera
This commit is contained in:
1 parent
128c9e3f88
commit
04315f077d
1 file changed
+1
-2
@@ -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