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

Touch events on SideSwipe prevent scrolling in ScrollView #59

Open
rubycon opened this issue Jun 20, 2019 · 0 comments
Open

Touch events on SideSwipe prevent scrolling in ScrollView #59

rubycon opened this issue Jun 20, 2019 · 0 comments

Comments

@rubycon
Copy link

rubycon commented Jun 20, 2019

When using SideSwipe in a ScrollView, touch events on SideSwipe are unconditionnally captured and prevent the screen from scrolling. The culprit seems to be:

onStartShouldSetPanResponder: () => true,

It always makes SideSwipe the pan responder has soon has we touch it. SideSwipe should be a bit more lax about being the responder. Using the shouldCapture callback works fine for me:

onStartShouldSetPanResponder: () => this.handleGestureCapture,
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

1 participant