MCPcopy Create free account
hub / github.com/dailydotdev/apps / onScroll

Function onScroll

packages/shared/src/components/shell/ShellTopButton.tsx:18–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 setPast(window.scrollY >= window.innerHeight);
17 };
18 const onScroll = () => {
19 if (!frame) {
20 frame = window.requestAnimationFrame(read);
21 }
22 };
23 read();
24 window.addEventListener('scroll', onScroll, { passive: true });
25 return () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected