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

Function scrollTo

packages/shared/src/components/shell/ShellField.spec.tsx:18–21  ·  view source on GitHub ↗
(y: number)

Source from the content-addressed store, hash-verified

16 .useIsPhone as jest.Mock;
17
18const scrollTo = (y: number) => {
19 Object.defineProperty(window, 'scrollY', { configurable: true, value: y });
20 window.dispatchEvent(new Event('scroll'));
21};
22
23// The field portals to the root, which asks the request protocol for the
24// extension's wrapper; that hook needs a query client.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected