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

Function tick

demo/App.tsx:277–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275 }
276 let raf = 0;
277 const tick = () => {
278 const el = msgsRef.current;
279 if (el && !userScrolledUpRef.current) {
280 easeScrollToBottom(el, DEFAULT_STREAM_SCROLL_EASE);
281 }
282 raf = requestAnimationFrame(tick);
283 };
284 raf = requestAnimationFrame(tick);
285 return () => cancelAnimationFrame(raf);
286 }, [busy]);

Callers

nothing calls this directly

Calls 1

easeScrollToBottomFunction · 0.85

Tested by

no test coverage detected