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

Function scrollToBottom

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

Source from the content-addressed store, hash-verified

78 }
79
80 function scrollToBottom() {
81 if (!scrollRef || state.userScrolled || !working() || state.autoScrolling) return
82 setState("autoScrolling", true)
83 requestAnimationFrame(() => {
84 scrollRef?.scrollTo({ top: scrollRef.scrollHeight, behavior: "auto" })
85 requestAnimationFrame(() => {
86 setState("autoScrolling", false)
87 })
88 })
89 }
90
91 createEffect(() => {
92 if (!working()) {

Callers 1

SessionTurnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected