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

Function canMove

packages/shared/src/components/shell/shellMove.ts:19–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17type RouteEvent = Parameters<NextRouter['events']['on']>[0];
18
19const canMove = (): boolean =>
20 window.matchMedia(phone.replace('@media ', '')).matches &&
21 !window.matchMedia('(prefers-reduced-motion: reduce)').matches;
22
23const standingSelector = '.shell-block, .shell-cluster, .shell-scrim, .fixed';
24const itemSelector = 'main article';

Callers 1

moveShellFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected