Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0, 5.4.0 Beta
-
None
-
Windows 7, Dell Latitude XT2
-
88057e3407aa16d0a9dc9dcc6d0ea6174dce693b *(qtbase/5.4, 24.10.2014, 5.4)
Description
qstandardgestures.cpp
if (xDistance > MoveThreshold || yDistance > MoveThreshold) { // measure the distance to check if the direction changed ... if (d->verticalDirection != vertical || d->horizontalDirection != horizontal) { // the user has changed the direction! result = QGestureRecognizer::CancelGesture; } result = QGestureRecognizer::TriggerGesture; }
should be changed to
qstandardgestures.cpp
if (xDistance > MoveThreshold || yDistance > MoveThreshold) { // measure the distance to check if the direction changed ... if (d->verticalDirection != vertical || d->horizontalDirection != horizontal) { // the user has changed the direction! result = QGestureRecognizer::CancelGesture; } else result = QGestureRecognizer::TriggerGesture; }
Otherwise the swipe gesture isn't canceled and therefore not reset if the user changes the swiping direction.
Attachments
Issue Links
- relates to
-
QTBUG-15768 Swipe gesture doesn't work with the imagegestures example
- Open