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

Function onScroll

src/hold-stream.ts:156–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154): () => void {
155 const threshold = options?.thresholdPx ?? DEFAULT_STREAM_SCROLL_THRESHOLD;
156 const onScroll = () => {
157 syncStreamScrollFollow(el, state, threshold);
158 };
159 el.addEventListener("scroll", onScroll, { passive: true });
160 return () => el.removeEventListener("scroll", onScroll);
161}

Callers

nothing calls this directly

Calls 1

syncStreamScrollFollowFunction · 0.85

Tested by

no test coverage detected