ai-chatbot icon indicating copy to clipboard operation
ai-chatbot copied to clipboard

feat: prevent auto-scroll when user manually scrolls

Open Sherlockouo opened this issue 9 months ago • 3 comments

  • 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.

Sherlockouo avatar Feb 15 '25 10:02 Sherlockouo

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

A member of the Team first needs to authorize it.

vercel[bot] avatar Feb 15 '25 10:02 vercel[bot]

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

dxloop avatar Feb 15 '25 12:02 dxloop

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

sorry I'll fix this

Sherlockouo avatar Feb 18 '25 06:02 Sherlockouo

will look into this and solve in the revamp but thank you for the pr

dancer avatar Nov 01 '25 04:11 dancer