diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-05-20 19:31:50 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-05-20 19:43:49 +0200 |
commit | e685d061621f0c55ed8c6ea29ea1380af03f8c1c (patch) | |
tree | bd0c3273aea42146610a6a52943756a5605a595a /tests/manual/pointer/flingAnimation.qml | |
parent | f65493489e3ca0a86a5e014d3ea2803368d77cd3 (diff) |
Reduce velocity in manual test MomentumAnimation
In Qt 5 the numbers were smaller, as if units were pixels per millisecond.
In Qt 6 it hopefully really is in logical pixels per second; so the
animation destination should be divided by 1000 relative to what it was before.
Likewise the velocity arrow in flingAnimation.qml should be 1000x shorter.
This looks and feels about right currently.
Fixes: QTBUG-93886
Change-Id: I7b8039024bff11f1a65a2f02ac5e2d85654cbdd0
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/manual/pointer/flingAnimation.qml')
-rw-r--r-- | tests/manual/pointer/flingAnimation.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/pointer/flingAnimation.qml b/tests/manual/pointer/flingAnimation.qml index 2bc6de7065..4ec84789cd 100644 --- a/tests/manual/pointer/flingAnimation.qml +++ b/tests/manual/pointer/flingAnimation.qml @@ -103,7 +103,7 @@ Rectangle { Rectangle { visible: width > 0 - width: dragHandler.centroid.velocity.length() * 100 + width: dragHandler.centroid.velocity.length() / 10 height: 2 x: ball.width / 2 y: ball.height / 2 |