AndroidUIGestureRecognizer icon indicating copy to clipboard operation
AndroidUIGestureRecognizer copied to clipboard

requireFailureOf only supports a single recognizer

Open gonemad opened this issue 8 years ago • 2 comments

Right now there is no way that i can figure out to support a long press, single tap, and double tap independently of each other.

if singleTap.requiresFailureOf(doubleTap), then when i long press both long press and single tap get triggered. If (singleTap.requiresFailureOf(longPress) then both single and double tap get triggered when double tapping

requiresFailureOf should support more than one recognizer and the above scenario should work better

gonemad avatar Aug 08 '17 03:08 gonemad

i see now that i can chain the requiresFailureOf to get the desired effect. singleTap.requiresFailureOf(doubleTap) doubleTap.requiresFailureOf(longPress)

but that feels a bit hacky, so I guess treat this as a feature request instead of a bug

gonemad avatar Aug 08 '17 10:08 gonemad

I have to investigate how the iOS UIGestureRecognizer handles this. I'd like to keep this as close as possible to the ios version.

sephiroth74 avatar Aug 08 '17 13:08 sephiroth74