summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveDetailsView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml/DiveDetailsView.qml')
-rw-r--r--mobile-widgets/qml/DiveDetailsView.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml
index c07cce038..3eb0ec2d2 100644
--- a/mobile-widgets/qml/DiveDetailsView.qml
+++ b/mobile-widgets/qml/DiveDetailsView.qml
@@ -277,6 +277,16 @@ Item {
// pass events through to the parent and eventually into the ListView
propagateComposedEvents: true
+ // for testing / debugging on a desktop
+ scrollGestureEnabled: true
+ onWheel: {
+ manager.appendTextToLog("wheel " + wheel.angleDelta)
+ if (wheel.angleDelta.y > 0)
+ qmlProfile.scale += 0.2
+ if (wheel.angleDelta.y < 0 && qmlProfile.scale > 1.1)
+ qmlProfile.scale -= 0.2
+ }
+
anchors.fill: parent
drag.target: qmlProfile
drag.axis: Drag.XAndYAxis