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.
This commit is contained in:
Xaver Hugl 2022-05-27 03:42:49 +02:00
parent 97a82c97df
commit 9957f8c84a

View file

@ -1131,9 +1131,11 @@ public:
m_gestureTaken &= m_touchPoints.count() > 0; m_gestureTaken &= m_touchPoints.count() > 0;
m_gestureCancelled &= m_gestureTaken; m_gestureCancelled &= m_gestureTaken;
return true; return true;
} } else {
m_gestureCancelled &= m_touchPoints.count() > 0;
return false; return false;
} }
}
bool touchCancel() override bool touchCancel() override
{ {