You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setItems delay and useFirstItemChanged instead of isPrepend.current are important changes. But delay should be significant, even 1000 doesn't always work, so that's not a solution
Describe the bug
When I scroll up and new items are prepended while scrolling, it breaks scroll behavior in Safari.
Here is the demo https://github.com/inokawa/virtua/assets/37265338/ed93157c-65fa-4bf4-9369-a3535cb44ed9
Right after prepending there are different items visible in viewport, you can slow down the video to see it better.
If I scroll fast I looks like this
https://github.com/inokawa/virtua/assets/37265338/78b59e01-ab8b-430d-9457-50a1779d1248
To Reproduce
Open "Chat" storybook example in Safari (I only changed page size from 100 to 10)
Expected behavior
Scroll position should be adjusted correctly, the same elements should be visible as before prepending
Platform:
Additional context
Might be related to #362
The text was updated successfully, but these errors were encountered: