aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickflickable/data/stopAtBounds.qml
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@jollamobile.com>2013-11-27 16:13:29 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-05 00:57:45 +0100
commit268f4615dcf19aad3603833af83ba28eca886aa5 (patch)
treeb96dd3d0d81eda0e36d8320cd49d546ca95cb37c /tests/auto/quick/qquickflickable/data/stopAtBounds.qml
parent7e3578728edec27301b71f5ab5d7b43874ae35a2 (diff)
Fix Flickable StopAtBounds drag over, back, over behavior.
A Flickable with StopAtBounds failed when: 1. position on a boundary. Without lifting your finger: 2. attempt to drag beyond the boundary -> doesn't drag 3. drag back to initiate dragging 4. attempt to quickly drag beyond the boundary. After 4, the view should be back on the boundary, but it could get stuck a little short of the boundary. Change-Id: I9bfbb4293f4d464bddb97c5c37e9bb91ed7d48e4 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'tests/auto/quick/qquickflickable/data/stopAtBounds.qml')
-rw-r--r--tests/auto/quick/qquickflickable/data/stopAtBounds.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickflickable/data/stopAtBounds.qml b/tests/auto/quick/qquickflickable/data/stopAtBounds.qml
new file mode 100644
index 0000000000..d8661f3e45
--- /dev/null
+++ b/tests/auto/quick/qquickflickable/data/stopAtBounds.qml
@@ -0,0 +1,22 @@
+import QtQuick 2.0
+
+Flickable {
+ id: outer
+ objectName: "flickable"
+ width: 400
+ height: 400
+ contentX: 50
+ contentY: 50
+ contentWidth: 500
+ contentHeight: 500
+ boundsBehavior: Flickable.StopAtBounds
+
+ Rectangle {
+ x: 100
+ y: 100
+ width: 300
+ height: 300
+
+ color: "yellow"
+ }
+}