react-native-swipe-gestures icon indicating copy to clipboard operation
react-native-swipe-gestures copied to clipboard

Vertical scroll is getting stuck

Open Achilles718611 opened this issue 6 years ago • 14 comments

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

Achilles718611 avatar Jun 24 '19 15:06 Achilles718611

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

FirdousNath avatar Jul 14 '19 12:07 FirdousNath

+1

brkrtp avatar Jul 18 '19 21:07 brkrtp

Same here ... any solutions for it ??

Base29 avatar Aug 21 '19 10:08 Base29

any update here? only happens on iOS 2

alopezjs avatar Sep 27 '19 16:09 alopezjs

@glepur any idea how to fix that?

bartoszboruta avatar Oct 02 '19 14:10 bartoszboruta

Same problem here...

cognitiocorporation avatar Oct 15 '19 20:10 cognitiocorporation

The same one here

ualejandroc avatar Oct 18 '19 22:10 ualejandroc

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

latusdenis avatar Oct 23 '19 12:10 latusdenis

+1 for iOS. On Android works fine

bezenson avatar Oct 24 '19 07:10 bezenson

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

alopezjs avatar Oct 24 '19 17:10 alopezjs

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

SSTPIERRE2 avatar Feb 28 '20 16:02 SSTPIERRE2

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

EatherToo avatar Dec 04 '20 03:12 EatherToo

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

sajjad-yousaf avatar Apr 21 '21 09:04 sajjad-yousaf

@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.

SlaveWilson avatar May 11 '21 14:05 SlaveWilson