aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickpointerhandler.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-04-20 09:59:00 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2017-04-21 13:30:58 +0000
commitdcc7367997e7241918cdf0c702c7bb8325eb1ad4 (patch)
tree56c2fb0a446ec0a8fb900f3bcc40b225df59196e /src/quick/handlers/qquickpointerhandler.cpp
parentfdb7c432514c828a7a921270d55e1c134151e19a (diff)
TapHandler: do not react to stationary touchpoints
In autotests, stationary points normally have invalid position. A TapHandler does not need to react to them anyway. But we must also avoid having a grab cancelation due to a stationary point, and that applies to all PointerHandlers in general. Change-Id: I99493ad7d859e0c4ef155afc699aa34f28ffdbc7 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickpointerhandler.cpp')
-rw-r--r--src/quick/handlers/qquickpointerhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/handlers/qquickpointerhandler.cpp b/src/quick/handlers/qquickpointerhandler.cpp
index f625b50f10..8f113ddd56 100644
--- a/src/quick/handlers/qquickpointerhandler.cpp
+++ b/src/quick/handlers/qquickpointerhandler.cpp
@@ -205,7 +205,7 @@ void QQuickPointerHandler::handlePointerEvent(QQuickPointerEvent *event)
int pCount = event->pointCount();
for (int i = 0; i < pCount; ++i) {
QQuickEventPoint *pt = event->point(i);
- if (pt->grabberPointerHandler() == this)
+ if (pt->grabberPointerHandler() == this && pt->state() != QQuickEventPoint::Stationary)
pt->cancelExclusiveGrab();
}
}