leecade / leecade/react-native-swiper
onMomentumScrollEnd wont fire if you scroll really fast on iOS
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing a very fast iOS swipe and observing whether onMomentumScrollEnd fires and whether the index skips. Review the swiper's existing scroll-event handling; done means fast swipes reliably report each new page, or the requested page-change behavior has a clearly defined implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100