Skip to content

How to tell if scrolling was initiated by user input? #413

Answered by inokawa
szszoke asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@szszoke
Comment options

@inokawa
Comment options

@szszoke
Comment options

@inokawa
Comment options

Answer selected by szszoke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants