Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requireFailureOf only supports a single recognizer #10

Open
gonemad opened this issue Aug 8, 2017 · 2 comments
Open

requireFailureOf only supports a single recognizer #10

gonemad opened this issue Aug 8, 2017 · 2 comments
Assignees

Comments

@gonemad
Copy link

gonemad commented Aug 8, 2017

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
Copy link
Author

gonemad commented Aug 8, 2017

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

@sephiroth74
Copy link
Owner

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 sephiroth74 self-assigned this Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants