glepur/react-native-swipe-gestures

Vertical scroll is getting stuck

Achilles718611 opened this issue ยท 14 comments

If I use GestureRecognizer, vertical scroll is getting stuck.
i.e vertical scroll is not flexible.

yeah, same! When I use it on top of flatlist , it's not working on iOS. Vertical scroll is no more smooth

+1

Same here ... any solutions for it ??

any update here? only happens on iOS
2

@glepur any idea how to fix that?

Same problem here...

The same one here

@alopezjs Have you found a solution? Facing the same issue

+1 for iOS. On Android works fine

Hey everyone, sorry for not answering. I was able to resolve it, don't know if it was a good practice but I just modified the node_modules/react-native-swipe-gestures/index.js file, I commented this section:

gestureIsClick(gestureState) {
  return (
    Math.abs(gestureState.dx) < swipeConfig.gestureIsClickThreshold
    // && Math.abs(gestureState.dy) < swipeConfig.gestureIsClickThreshold
   )
}

and it works:
2
still working in android, but I don't know yet if with this I broke anything else, let me know guys if this works for you

That fix works for me, @glepur any concerns with that change?

may you can try my fork to fix this problem https://github.com/EatherToo/react-native-swipe-gestures

I have removed this line and the issue is better now, but my screen is still stucking some time while scrolling.
Please anyone?

@TeamDlxx I think it is because sometimes it detected the event as swipeLeft or swipeRight, I guess increasing the directionalOffsetThreshold should be able to help.