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

Function scrollTo

packages/shared/src/components/shell/useShellScroll.spec.tsx:5–8  ·  view source on GitHub ↗
(y: number)

Source from the content-addressed store, hash-verified

3import { scroll } from './constants';
4
5const scrollTo = (y: number) => {
6 Object.defineProperty(window, 'scrollY', { configurable: true, value: y });
7 window.dispatchEvent(new Event('scroll'));
8};
9
10describe('useShellScroll', () => {
11 beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected