Fix simultaneous recognition bug. Important!

This commit is contained in:
Pavel fljot 2013-12-16 11:54:12 +02:00
parent ae2471d2ac
commit 3b4a81898b

View file

@ -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);
}