Weird scrolling behavior when firstItem !== 0 & loop === true
See original GitHub issueHi, first of all, thanks for life saving library.
I’m facing one peculiar issue - let’s have a list of 5 items and firstItem
set to 1, so second item in a list is selected by default. Now swipe to right to scroll to 3rd, 4th items and so on. It works as expected until you swipe from 5th item (index 4) to 1st item (index 0). After animation is done, the list is somehow re-scrolled again - see example in expo or gif.
- Strange enough, it seems to be broken in this way only when firstItem is set to anything but 0.
- It also happens only once and works afterwards quite fine.
Is this a bug report or a feature request?
Bug report
Testing environment
- expo@23.0.6 with react-native@https://github.com/expo/react-native/archive/sdk-23.0.0.tar.gz
- react-native-snap-carousel@3.4.0
- react@16.0.0
- iOS simulator Version 10.0 & iPhone 7
Reproducible Demo
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:18 (3 by maintainers)
Top Results From Across the Web
Weird scrolling behavior when firstItem !== 0 & loop === true
I'm facing one peculiar issue - let's have a list of 5 items and firstItem set to 1, so second item in a...
Read more >UICollectionView scroll to item not working with horizontal ...
For some strange reason collectionView.scrollToItem works when the direction of the collectionview is vertical but doesn't when direction is horizontal . Is ...
Read more >scroll-behavior - CSS: Cascading Style Sheets - MDN Web Docs
The scroll-behavior CSS property sets the behavior for a scrolling box when scrolling is triggered by the navigation or CSSOM scrolling APIs ...
Read more >Lists and grids | Jetpack Compose - Android Developers
A Lazy vertical grid will display its items in a vertically scrollable container, spanned across multiple columns, while the Lazy horizontal grids will...
Read more >APL Standard Commands | Alexa Skills Kit - Amazon Developer
When a command with screenLock=true finishes running, the interaction timer is reset to 0. The screenLock applies to the entire extent of the...
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
Hi @jaroslav-kubicek,
I’ve tested with the latest RN version and it seems that the internal issue has been solved 🎉 I’ve updated the example to RN
0.51.0
if you want to give it a try.@bd-arc you have referred from #303/#304 to this issue, but this issue is closed and it seems to me that the bottom two comments are a separate issue from the remainder? This issue is bugging me quite a lot now, please reconsider the PR and reopen the issue, or document it in a separate issue!