Fix Flickable StopAtBounds drag over, back, over behavior.
authorMartin Jones <martin.jones@jollamobile.com>
Wed, 27 Nov 2013 06:13:29 +0000 (16:13 +1000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 4 Dec 2013 23:57:45 +0000 (00:57 +0100)
commit268f4615dcf19aad3603833af83ba28eca886aa5
treeb96dd3d0d81eda0e36d8320cd49d546ca95cb37c
parent7e3578728edec27301b71f5ab5d7b43874ae35a2
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>
src/quick/items/qquickflickable.cpp
tests/auto/quick/qquickflickable/data/stopAtBounds.qml [new file with mode: 0644]
tests/auto/quick/qquickflickable/tst_qquickflickable.cpp