diff options
Diffstat (limited to 'map-widget/qml/MapWidget.qml')
-rw-r--r-- | map-widget/qml/MapWidget.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/map-widget/qml/MapWidget.qml b/map-widget/qml/MapWidget.qml index 646d2f993..2a75d4080 100644 --- a/map-widget/qml/MapWidget.qml +++ b/map-widget/qml/MapWidget.qml @@ -128,6 +128,8 @@ Item { MouseArea { anchors.fill: parent + onPressed: { map.stopZoomAnimations(); mouse.accepted = false } + onWheel: { map.stopZoomAnimations(); wheel.accepted = false } onDoubleClicked: map.doubleClickHandler(map.toCoordinate(Qt.point(mouseX, mouseY))) } @@ -294,6 +296,7 @@ Item { MouseArea { anchors.fill: parent onClicked: { + map.stopZoomAnimations() map.newCenter = map.center map.newZoom = map.zoomLevel + map.zoomStep if (map.newZoom > map.maximumZoomLevel) @@ -318,6 +321,7 @@ Item { MouseArea { anchors.fill: parent onClicked: { + map.stopZoomAnimations() map.newCenter = map.center map.newZoom = map.zoomLevel - map.zoomStep mapAnimationClick.restart() |