diff options
Diffstat (limited to 'packages/ui/src/components')
| -rw-r--r-- | packages/ui/src/components/session-turn.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/ui/src/components/session-turn.tsx b/packages/ui/src/components/session-turn.tsx index 722b02492..79b3b7d47 100644 --- a/packages/ui/src/components/session-turn.tsx +++ b/packages/ui/src/components/session-turn.tsx @@ -102,7 +102,9 @@ export function SessionTurn( setState("autoScrolled", true) requestAnimationFrame(() => { scrollRef?.scrollTo({ top: scrollRef.scrollHeight, behavior: "smooth" }) - setState("autoScrolled", false) + requestAnimationFrame(() => { + setState("autoScrolled", false) + }) }) } |
