react-native-swiper icon indicating copy to clipboard operation
react-native-swiper copied to clipboard

onMomentumScrollEnd wont fire if you scroll really fast on iOS

Open tomislavHonig opened this issue 9 years ago • 2 comments

if you scroll fast enough onMomentumScrollEnd will not fire and it will skip index. Is there a way to disable fast scrolling so that onMomentumScrollEnd will fire on every swipe?

Maybe create onPageChanged event that will fire when new page enters into the display view.

Anyone has a solution to this problem?

Here is the desired functionality https://raw.githubusercontent.com/rreusser/react-native-paged-scroll-view/master/example.gif (it detects new page when old page is still on half way out of the screen)

  • gif is from https://github.com/rreusser/react-native-paged-scroll-view library which is not supported anymore.

tomislavHonig avatar Mar 28 '17 09:03 tomislavHonig

Same for android as well

sahil-innostax avatar Jun 17 '17 11:06 sahil-innostax

for me in react native 61.5 (iOS ONLY) onMomentumScrollEnd doesn't fire if the user stops the scrolling with their finger. Basically the screen can't be standing still after a drag, or else onMomentumScrollEnd method won't execute. It can glide very slowly then stops and it works fine.

MannySauce avatar Nov 11 '20 03:11 MannySauce