Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes scroll position of reversed list doesn't stay at the bottom on items resize #408

Open
mariia-mitiureva opened this issue Mar 11, 2024 · 0 comments

Comments

@mariia-mitiureva
Copy link
Contributor

mariia-mitiureva commented Mar 11, 2024

Describe the bug
There are some cases when scroll position of reversed list doesn't stay at the bottom

  1. When some part of content is loaded with a delay after initial render (a picture in my example). You can also click "Add item" button in the attached codesandbox example to reproduce it.
  2. Randomly happens when you expand and collapse items, not in 100% cases
  3. Scroll up just a bit > collapse one item, so that scroll position is at the bottom again > expand the item => scroll position is not at the bottom, but at the same place as before item collapsing.
screencast-codesandbox.io-2024.03.11-20_36_38.webm

To Reproduce
Codesandbox: https://codesandbox.io/p/sandbox/virtua-reverse-infinite-scroll-forked-hn39kp

Expected behavior
Scroll position should stay at the bottom on any items resize when reverse: true

Platform:

  • Version of this package: 0.28.0
  • Version of framework: react 18.2.0

Additional context
Might be related to #301, but seems more like a different issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant