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

Function scrollUserTo

packages/shared/src/hooks/useScrollRestoration.spec.ts:66–69  ·  view source on GitHub ↗
(position: number)

Source from the content-addressed store, hash-verified

64};
65
66const scrollUserTo = (position: number) => {
67 setScrollY(position);
68 window.dispatchEvent(new Event('scroll'));
69};
70
71// One rAF tick, driven by the fake timers backing requestAnimationFrame.
72const advanceFrames = (count = 1) =>

Callers 2

startOnScrolledFeedFunction · 0.85

Calls 1

setScrollYFunction · 0.70

Tested by

no test coverage detected