summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-03-31 23:42:04 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2017-04-20 18:37:02 +0000
commitc2d6f267a74f7fdd9422af88e35ade280cf0a3d3 (patch)
treed671f3d2752c4600785651ca53e227c40999f2a5 /tests/manual
parent97e2050f1c942da0b4d49df19b408c10a68e14b8 (diff)
PinchHandler: add centroidVelocity
Change-Id: I34cc9146155bded8311c1173e4b8d34d8b17b034 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/pointer/pinchHandler.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/manual/pointer/pinchHandler.qml b/tests/manual/pointer/pinchHandler.qml
index 7f2f9bd70f..1d0a859564 100644
--- a/tests/manual/pointer/pinchHandler.qml
+++ b/tests/manual/pointer/pinchHandler.qml
@@ -40,6 +40,7 @@
import QtQuick 2.8
import Qt.labs.handlers 1.0
+import "content"
Rectangle {
width: 1024; height: 600
@@ -119,7 +120,13 @@ Rectangle {
requiredPointCount: 3
minimumScale: 0.1
maximumScale: 10
+ onActiveChanged: {
+ if (!active)
+ anim.restart(centroidVelocity)
+ }
}
+
+ MomentumAnimation { id: anim; target: rect3 }
}
}
Rectangle {