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

Function tick

src/streamhtml.tsx:119–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 }
118 let raf = 0;
119 const tick = () => {
120 const el = ref.current;
121 if (el) {
122 syncNestedStreamScroll(el, {
123 pin: true,
124 smooth: true,
125 factor: DEFAULT_STREAM_SCROLL_EASE,
126 });
127 }
128 raf = requestAnimationFrame(tick);
129 };
130 raf = requestAnimationFrame(tick);
131 return () => cancelAnimationFrame(raf);
132 }, [isStreaming]);

Callers

nothing calls this directly

Calls 1

syncNestedStreamScrollFunction · 0.90

Tested by

no test coverage detected