MCPcopy Create free account
hub / github.com/arctic-cli/interface / handleScroll

Function handleScroll

packages/ui/src/components/session-turn.tsx:63–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 })
62
63 function handleScroll() {
64 if (!scrollRef) return
65 setState("scrollY", scrollRef.scrollTop)
66 if (state.autoScrolling) return
67 const { scrollTop, scrollHeight, clientHeight } = scrollRef
68 const atBottom = scrollHeight - scrollTop - clientHeight < 50
69 if (!atBottom && working()) {
70 setState("userScrolled", true)
71 }
72 }
73
74 function handleInteraction() {
75 if (working()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected