diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/quick/handlers/qquicktaphandler.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/quick/handlers/qquicktaphandler.cpp b/src/quick/handlers/qquicktaphandler.cpp index c0a0dd8379..f79dbb266a 100644 --- a/src/quick/handlers/qquicktaphandler.cpp +++ b/src/quick/handlers/qquicktaphandler.cpp @@ -291,12 +291,9 @@ void QQuickTapHandler::setPressed(bool press, bool cancel, QQuickEventPoint *poi } } emit pressedChanged(); - if (!press) { + if (!press && m_gesturePolicy != DragThreshold) { // on release, ungrab after emitting changed signals - if (m_gesturePolicy == DragThreshold) - setPassiveGrab(point, press); - else - setExclusiveGrab(point, press); + setExclusiveGrab(point, press); } } } |