Replies: 1 comment
-
I've just been working on this for the past week. I've found this thread to be very useful when working on the same problem: My use case is a messaging interface. Code's a little messy right now but I'll share in case it helps:
That's the general idea anyway. Figure out if the data was prepended and then shift the scrollTop accordingly. Mine's still not working consistently because I haven't gotten the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the virtualizer to render a list of dynamically sized items, and I was hoping to get some advice on how to preserve the currently visible items when a new item is added to the beginning of the list (particularly when that item is not visible/offscreen).
Steps to repro
Expected
Existing scroll position remains the same (from the user's perspective at least)
Actual
Content shifts down
Ideas
Looking for any feedback/tips, maybe this is already supported! Thanks
Beta Was this translation helpful? Give feedback.
All reactions