chore: cleanup
This commit is contained in:
parent
779311d064
commit
27da9c1852
4 changed files with 2 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue