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:
parent
97a82c97df
commit
9957f8c84a
1 changed files with 3 additions and 1 deletions
|
@ -1131,8 +1131,10 @@ 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
|
||||||
|
|
Loading…
Reference in a new issue