Skip to content

PanGestureHandler does not cancel when outside. #30

@wmcbain

Description

@wmcbain

Hey there, love what this project is trying to accomplish and I was hoping that it could assist with an use case in our app. What we have is a scroll view with a nested view that responds to both tap and pan gestures. Once activated with tap or pan we want the view to cancel the gesture and make the ScrollView the responder.

I've found that shouldCancelWhenOutside doesn't work with PanGestureHandler. I have an example project here that shows the issue. Is this expected? Related gif below as well.

Thanks for your help and appreciate the work you're doing. 👍🏻

example

Edit: Jumped into the source code and did a bit of debugging and I think I could handle the PR for this if that's alright. 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions