diff options
| author | Adam <[email protected]> | 2025-12-15 10:18:55 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-15 10:22:07 -0600 |
| commit | ed96ae9d45633392bf96c733162bf1315512d93b (patch) | |
| tree | 514695b5ee04fbcda0c4f230e92f45e0e9fd1669 /packages/ui/src | |
| parent | 8ce0966987a0de46d64307c02f729a290f2f3cf3 (diff) | |
| download | opencode-ed96ae9d45633392bf96c733162bf1315512d93b.tar.gz opencode-ed96ae9d45633392bf96c733162bf1315512d93b.zip | |
chore: cleanup
Diffstat (limited to 'packages/ui/src')
| -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) |
