feat: add scroll-to-bottom button to chat + prevent forced scroll down (#23270)

This commit is contained in:
Aleksander Grygier
2026-05-18 16:17:21 +02:00
committed by GitHub
parent 1ff0fc1384
commit b9a2170fce
4 changed files with 70 additions and 2 deletions
@@ -100,6 +100,14 @@ export class AutoScrollController {
this._autoScrollEnabled = true;
}
/**
* Resets scroll state when switching conversations.
*/
resetScrollState(): void {
this._userScrolledUp = false;
this._autoScrollEnabled = true;
}
/**
* Starts the auto-scroll interval for continuous scrolling during streaming.
*/