diff options
Diffstat (limited to 'packages/ui/src/components')
| -rw-r--r-- | packages/ui/src/components/session-turn.tsx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/packages/ui/src/components/session-turn.tsx b/packages/ui/src/components/session-turn.tsx index 2df324eef..1ea87a84f 100644 --- a/packages/ui/src/components/session-turn.tsx +++ b/packages/ui/src/components/session-turn.tsx @@ -64,9 +64,6 @@ export function SessionTurn( if (!scrollRef) return if (state.autoScrolling) return const { scrollTop, scrollHeight, clientHeight } = scrollRef - // prevents scroll loops - only update scrollY if we have meaningful scroll room - // the gap clamp shrinks by 0.48px per pixel scrolled, hitting min at ~71px scroll - // we need at least that much scroll headroom beyond the current scroll position const scrollRoom = scrollHeight - clientHeight if (scrollRoom > 100) { setState("scrollY", scrollTop) |
