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

Function scrollTo

packages/shared/src/components/post/PostCapsule.spec.tsx:83–86  ·  view source on GitHub ↗
(y: number)

Source from the content-addressed store, hash-verified

81} as unknown as Post;
82
83const scrollTo = (y: number) => {
84 Object.defineProperty(window, 'scrollY', { configurable: true, value: y });
85 window.dispatchEvent(new Event('scroll'));
86};
87
88const Presence = () => {
89 const { mounted } = useShellField();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected