MCPcopy Create free account
hub / github.com/bvaughn/react-window / onScroll

Function onScroll

lib/hooks/useIsScrolling.ts:59–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 };
58
59 const onScroll = () => {
60 setIsScrolling(true);
61
62 if (!supportsScrollEnd) {
63 lastScrollTime = performance.now();
64 if (animationFrameId === undefined) {
65 animationFrameId =
66 ownerWindow.requestAnimationFrame(checkForScrollEnd);
67 }
68 }
69 };
70
71 const onScrollEnd = () => {
72 setIsScrolling(false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected