MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / markScrollActivity

Function markScrollActivity

source code/bootstrap/state.ts:800–808  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

798/** Mark that a scroll event just happened. Background intervals gate on
799 * getIsScrollDraining() and skip their work until the debounce clears. */
800export function markScrollActivity(): void {
801 scrollDraining = true
802 if (scrollDrainTimer) clearTimeout(scrollDrainTimer)
803 scrollDrainTimer = setTimeout(() => {
804 scrollDraining = false
805 scrollDrainTimer = undefined
806 }, SCROLL_DRAIN_IDLE_MS)
807 scrollDrainTimer.unref?.()
808}
809
810/** True while scroll is actively draining (within 150ms of last event).
811 * Intervals should early-return when this is set — the work picks up next

Callers 1

scrollMutatedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected