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

Function queuePositionUpdate

packages/app/src/pages/home.tsx:189–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187 }
188
189 function queuePositionUpdate() {
190 if (typeof requestAnimationFrame === "undefined") {
191 updatePositionCache()
192 return
193 }
194 if (positionFrame !== undefined) return
195 positionFrame = requestAnimationFrame(() => {
196 positionFrame = undefined
197 updatePositionCache()
198 })
199 }
200
201 function updatePositionCache() {
202 if (!viewport) return

Callers 5

setViewportFunction · 0.85
setContentRefFunction · 0.85
setHeaderRefFunction · 0.85
bindResizeObserverFunction · 0.85

Calls 1

updatePositionCacheFunction · 0.85

Tested by

no test coverage detected