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

Function restingY

packages/shared/src/components/shell/ReadingDrawer.tsx:434–435  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432 const base = () => (layout === 'full' ? current.full : current.card);
433 // The rubber band at the page's top is not the drawer coming down.
434 const restingY = () =>
435 layout === 'full' ? current.full + Math.max(0, window.scrollY) : restY;
436 const clearMoving = () =>
437 styleMoving({ transform: null, transition: null, 'will-change': null });
438 const present = (y: number) => {

Callers 2

updateFunction · 0.85
glideToFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected