Commit 9957f8c8 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

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.
parent 97a82c97
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment