MCPcopy Create free account
hub / github.com/Alphanimble/htmlstream / resetStreamScrollFollow

Function resetStreamScrollFollow

src/hold-stream.ts:108–111  ·  view source on GitHub ↗
(state: StreamScrollFollow)

Source from the content-addressed store, hash-verified

106
107/** Reset follow state when starting a new stream. */
108export function resetStreamScrollFollow(state: StreamScrollFollow): void {
109 state.paused = false;
110 state.lastScrollTop = 0;
111}
112
113/**
114 * Update follow state from scroll position.

Callers 2

streamhtml.tsxFile · 0.90
ChatAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected