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

Gesture recognizer inside gesture recognizer doesn't work #48

Open
holgersindbaek opened this issue Oct 28, 2019 · 2 comments
Open

Gesture recognizer inside gesture recognizer doesn't work #48

holgersindbaek opened this issue Oct 28, 2019 · 2 comments

Comments

@holgersindbaek
Copy link

I have a gesture recognizer inside a view. Inside that view there's a button that opens a modal. Inside that modal I have another gesture recognizer.

Whenever I'm swiping on the gesture recognizer inside the modal view, the handles in the parent gesture recognizer are called.

Is this the expected behaviour or am I doing something wrong? Can I do anything to have the gesture recognizer in the modal receive the touches instead of the parent gesture recognizer?

@dioseltorre
Copy link

dioseltorre commented Oct 30, 2019

This can be fixed when my PR (#47) on this feature request #46 will be merged and released soon. With swipeEnabled prop, you can disable the parent GestureRecogizer and have the child handle the gesture.

@holgersindbaek
Copy link
Author

@dioseltorre Nice... beautiful timing :-).

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