diff options
author | Tarja Sundqvist <[email protected]> | 2024-11-22 10:46:11 +0200 |
---|---|---|
committer | Tarja Sundqvist <[email protected]> | 2024-11-22 10:46:11 +0200 |
commit | 64364dbe06b46e5f355c3b2a6684a3eae4f54a7a (patch) | |
tree | b501b88601bbda604da2adac9307c47b6d3733b2 /src/quick/handlers/qquicktaphandler.cpp | |
parent | 6b64e58767c6dd32a29a261e3327fa88b5613621 (diff) | |
parent | 4d94cd012575956a7633fc19d87059f7a8e0dda2 (diff) |
Merge tag 'v6.2.11-lts' into tqtc/lts-6.2-opensource
Qt 6.2.11-lts release
Conflicts solved:
dependencies.yaml
Change-Id: I088fe99748b323fbdf49c3766c262eb2a05131d9
Diffstat (limited to 'src/quick/handlers/qquicktaphandler.cpp')
-rw-r--r-- | src/quick/handlers/qquicktaphandler.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/quick/handlers/qquicktaphandler.cpp b/src/quick/handlers/qquicktaphandler.cpp index 3abb366676..2b907d3805 100644 --- a/src/quick/handlers/qquicktaphandler.cpp +++ b/src/quick/handlers/qquicktaphandler.cpp @@ -121,15 +121,16 @@ bool QQuickTapHandler::wantsEventPoint(const QPointerEvent *event, const QEventP ret = parentContains(point); break; case QEventPoint::Updated: + ret = point.id() == this->point().id(); switch (m_gesturePolicy) { case DragThreshold: - ret = !overThreshold && parentContains(point); + ret = ret && !overThreshold && parentContains(point); break; case WithinBounds: - ret = parentContains(point); + ret = ret && parentContains(point); break; case ReleaseWithinBounds: - ret = point.id() == this->point().id(); + // no change to ret: depends only whether it's the already-tracking point ID break; } break; |