Skip to content

FrameSource

Defined in: dom/src/dom-utils/autoscroll.ts:6

Where animation frames come from: a window’s requestAnimationFrame in the browser, a manual queue in tests. The renderer’s frame scheduler and the autoscroll loop both take one; it lives here, not with the renderer, because dom-utils knows nothing of the renderer.

cancel(handle): void

Defined in: dom/src/dom-utils/autoscroll.ts:10

Withdraws a request that has not run yet.

unknown

void


request(callback): unknown

Defined in: dom/src/dom-utils/autoscroll.ts:8

Asks for callback to run once, before the next paint.

() => void

unknown