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

Function handleInteraction

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

Source from the content-addressed store, hash-verified

146 }
147
148 const handleInteraction = () => {
149 if (!active()) return
150 const selection = window.getSelection()
151 if (selection && selection.toString().length > 0) {
152 stop()
153 }
154 }
155
156 const updateOverflowAnchor = (el: HTMLElement) => {
157 const mode = options.overflowAnchor ?? "dynamic"

Callers

nothing calls this directly

Calls 2

activeFunction · 0.70
stopFunction · 0.70

Tested by

no test coverage detected