-
I am using this library to render a list of items. I want to add a "sticky" scroll functionality where if the user scrolls to the bottom then the list is automatically scrolled down to the bottom when new items are added. If the user scrolls up at any time then the sticky scroll is disabled until they scroll all the way down again. I was thinking of using the Edit: I tried to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The chat example has stick to bottom behavior without distinguishing where the scroll events come from. It's difficult to judge a scroll event is from browser or user. Actually, this lib has an internal logic for it but it's not complete and not exposed to userland. |
Beta Was this translation helpful? Give feedback.
The chat example has stick to bottom behavior without distinguishing where the scroll events come from.
https://github.com/inokawa/virtua/blob/main/stories/react/advanced/Chat.stories.tsx
https://inokawa.github.io/virtua/?path=/story/advanced-chat--default
It's difficult to judge a scroll event is from browser or user. Actually, this lib has an internal logic for it but it's not complete and not exposed to userland.