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

Function scheduleSelectionUpdate

packages/session-ui/src/components/file.tsx:186–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184 // -- selection scheduling --
185
186 const scheduleSelectionUpdate = () => {
187 if (selectionFrame !== undefined) return
188 selectionFrame = requestAnimationFrame(() => {
189 selectionFrame = undefined
190 const finishing = pendingSelectionEnd
191 config.updateSelection(finishing)
192 if (!pendingSelectionEnd) return
193 pendingSelectionEnd = false
194 config.onLineSelectionEnd(lastSelection)
195 })
196 }
197
198 const scheduleDragUpdate = () => {
199 if (dragFrame !== undefined) return

Callers 2

handleMouseUpFunction · 0.85
handleSelectionChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected