From 9957f8c84aa68576fc64822aa6bd2f59e0a15005 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Fri, 27 May 2022 03:42:49 +0200 Subject: [PATCH] input: fix touchscreen gesture detection When a gesture is cancelled because of the distance between fingers or the time it took to register them all, no gesture has been taken yet. In that case, the canceling would never be ended, effectively disabling all touchscreen gestures. --- src/input.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input.cpp b/src/input.cpp index e4bcac66ab..0c4c00afb1 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -1131,8 +1131,10 @@ public: m_gestureTaken &= m_touchPoints.count() > 0; m_gestureCancelled &= m_gestureTaken; return true; + } else { + m_gestureCancelled &= m_touchPoints.count() > 0; + return false; } - return false; } bool touchCancel() override