MCPcopy Create free account
hub / github.com/anomalyco/opencode / stop

Function stop

packages/ui/src/hooks/create-auto-scroll.tsx:100–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 }
99
100 const stop = () => {
101 const el = store.scrollRef
102 if (!el) return
103 if (!canScroll(el)) {
104 if (store.userScrolled) setStore("userScrolled", false)
105 return
106 }
107 if (store.userScrolled) return
108
109 setStore("userScrolled", true)
110 options.onUserInteracted?.()
111 }
112
113 const handleWheel = (e: WheelEvent) => {
114 if (e.deltaY >= 0) return

Callers 3

handleWheelFunction · 0.70
handleScrollFunction · 0.70
handleInteractionFunction · 0.70

Calls 2

canScrollFunction · 0.85
setStoreFunction · 0.85

Tested by

no test coverage detected