aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/snippets/pointerHandlers/wheelHandler.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/doc/snippets/pointerHandlers/wheelHandler.qml')
-rw-r--r--src/quick/doc/snippets/pointerHandlers/wheelHandler.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/quick/doc/snippets/pointerHandlers/wheelHandler.qml b/src/quick/doc/snippets/pointerHandlers/wheelHandler.qml
index 2c9913ac97..b3d659b4e5 100644
--- a/src/quick/doc/snippets/pointerHandlers/wheelHandler.qml
+++ b/src/quick/doc/snippets/pointerHandlers/wheelHandler.qml
@@ -56,8 +56,9 @@ Rectangle {
WheelHandler {
property: "rotation"
- onWheel: console.log("rotation", event.angleDelta.y,
- "scaled", rotation, "@", point.position, "=>", parent.rotation)
+ onWheel: (event)=> console.log("rotation", event.angleDelta.y,
+ "scaled", rotation, "@", point.position,
+ "=>", parent.rotation)
}
}
//![0]