mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-02-16 23:40:14 -05:00
Fix simultaneous recognition bug. Important!
This commit is contained in:
parent
ae2471d2ac
commit
3b4a81898b
1 changed files with 2 additions and 2 deletions
|
@ -182,9 +182,9 @@ package org.gestouch.core
|
|||
if (gesture.canPreventGesture(otherGesture) &&
|
||||
otherGesture.canBePreventedByGesture(gesture) &&
|
||||
(gesture.gesturesShouldRecognizeSimultaneouslyCallback == null ||
|
||||
gesture.gesturesShouldRecognizeSimultaneouslyCallback(gesture, otherGesture)) &&
|
||||
!gesture.gesturesShouldRecognizeSimultaneouslyCallback(gesture, otherGesture)) &&
|
||||
(otherGesture.gesturesShouldRecognizeSimultaneouslyCallback == null ||
|
||||
otherGesture.gesturesShouldRecognizeSimultaneouslyCallback(otherGesture, gesture)))
|
||||
!otherGesture.gesturesShouldRecognizeSimultaneouslyCallback(otherGesture, gesture)))
|
||||
{
|
||||
otherGesture.setState_internal(GestureState.FAILED);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue