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

Function stop

packages/shared/src/hooks/comments/useScrollToHashComment.ts:64–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 let scrollParent: HTMLElement | null = null;
63
64 const stop = () => {
65 cancelAnimationFrame(frame);
66 window.removeEventListener('wheel', stop);
67 window.removeEventListener('touchmove', stop);
68 window.removeEventListener('keydown', stop);
69 window.removeEventListener('mousedown', stop);
70 };
71
72 const measure = (element: HTMLElement): number[] => {
73 const rect = element.getBoundingClientRect();

Callers 1

tickFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected