diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-09-08 17:14:33 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-09-29 13:08:59 +0000 |
commit | 7b84962c47c9618af49526e3a2ef8c1c969d5aaa (patch) | |
tree | 3bbb101cf8ac91a1d322b9f53a8a0fbd6cfef739 /tests/auto/quick/qquickflickable/data | |
parent | 3a45458b96bdcbccc189aabf668e998ea03be46f (diff) |
Flickable: do not emit movementEnded until it really does
This was occurring when using a physical mouse wheel: movementEnded
was emitted, then contentYChanged would still be emitted a few more
times.
Task-number: QTBUG-55886
Change-Id: Ib5e833d5d84633bb07b8c240ea3ccc9977e443f8
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickflickable/data')
-rw-r--r-- | tests/auto/quick/qquickflickable/data/wheel.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickflickable/data/wheel.qml b/tests/auto/quick/qquickflickable/data/wheel.qml index 2928bbcd72..2be543cdde 100644 --- a/tests/auto/quick/qquickflickable/data/wheel.qml +++ b/tests/auto/quick/qquickflickable/data/wheel.qml @@ -8,9 +8,14 @@ Rectangle { Flickable { id: flick objectName: "flick" + property bool ended: false + property int movementsAfterEnd: 0 anchors.fill: parent contentWidth: 800 contentHeight: 800 + onContentXChanged: if (ended) ++movementsAfterEnd + onContentYChanged: if (ended) ++movementsAfterEnd + onMovementEnded: ended = true Rectangle { width: flick.contentWidth |