question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weird scrolling behavior when firstItem !== 0 & loop === true

See original GitHub issue

Hi, 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

Reproducible Demo

firstitem_issue

Expo: https://snack.expo.io/ByzFD3UGG

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:18 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bd-arccommented, Jan 2, 2018

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.

1reaction
xerufcommented, Apr 10, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found