kkemple/react-native-sideswipe

Touch events on SideSwipe prevent scrolling in ScrollView

rubycon opened this issue · 0 comments

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,