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

feat: prevent auto-scroll when user manually scrolls #800

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Sherlockouo
Copy link

  • Added userScrolledRef to track manual scrolling.
  • Introduced autoScrollInProgress to distinguish between user and auto scrolls.
  • Used scrollend event (or fallback setTimeout) to reset auto-scroll state.
  • Auto-scroll now pauses during user interaction and resumes when scrolled to bottom.

Copy link

vercel bot commented Feb 15, 2025

Someone is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@Sherlockouo Sherlockouo force-pushed the fix/scroll-with-model-answering branch from c667bdd to eb98bb3 Compare February 15, 2025 11:12
@dxloop
Copy link

dxloop commented Feb 15, 2025

@Sherlockouo Is it intended that the comments are in a different language?

@Sherlockouo
Copy link
Author

@Sherlockouo Is it intended that the comments are in a different language?

sorry I'll fix this

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

Successfully merging this pull request may close these issues.

2 participants