onProgressChanged and onSnapToItem takes too long to give back an index
See original GitHub issueDescribe the bug
onProgressChanged
and onSnapToItem
takes too long to give back an index
If I want to set a scrollAnimationDuration
of 1000 for example, and use onSnapToItem
to set the index of the dot in a pagination component, it takes 1sec to update.
Expected behavior Gives the next index immediately on swipe. Not wait until it has snapped and settled.
Versions (please complete the following information):
- react: v17.0.2
- react-native: v0.68.2
- react-native-reanimated-carousel: v3.0.6
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Variable in class org.osmdroid.samplefragments.milstd2525 ...
Computes a map tile index as `long` to/from zoom/x/y Algorithm unfortunately different from SqlTileWriter.getIndex for historical reasons.
Read more >Dohooo React-Native-Reanimated-Carousel Statistics & Issues
Issue Title State Comments Created Date Updated...
Migrate to react‑native‑gesture‑handler v2 API open 1 2022‑12‑12 2022‑12‑15
Is it possible to disable the overscroll? open 1...
Read more >Issues - react-native-reanimated-carousel - dohooo - Geeks
onProgressChanged and onSnapToItem takes too long to give back an index ... how to make the carousel auto-scroll programmatically.
Read more >react-native-reanimated-carousel - BestofReactjs
Infinitely scrolling very smooth! ... Wait for the next element to appear. ... Hello, There's a bug where onSnapToItem gives floating numbered index...
Read more >Caspian Zhao react-native-reanimated-carousel Issues - Giters
Cards are overlapped when navigating go back - only Android ... onProgressChanged and onSnapToItem takes too long to give back an index.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Re. #267. I’ll make a simple pagination component for basic usage. OHHHHH, Sry! I just understood what you meant. You want a simple way to control the pagination state rather than delicate animation. Let me think it over.
Maybe this new prop isn’t necessary, and you’ll solve the problem when you figure out the correct usage of reanimated. 🚀