MCPcopy
hub / github.com/graphif/project-graph / cancelAnimation

Function cancelAnimation

app/src/DropWindowCover.tsx:24–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23 useEffect(() => {
24 const cancelAnimation = () => {
25 if (hideTimerRef.current) clearTimeout(hideTimerRef.current);
26 if (rafRef.current) cancelAnimationFrame(rafRef.current);
27 hideTimerRef.current = null;
28 rafRef.current = null;
29 };
30
31 const unlistenPromise = getCurrentWindow().onDragDropEvent(async (event) => {
32 const size = await getCurrentWindow().outerSize();

Callers 1

DropWindowCoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected