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

Function present

packages/shared/src/components/shell/ReadingDrawer.tsx:438–441  ·  view source on GitHub ↗
(y: number)

Source from the content-addressed store, hash-verified

436 const clearMoving = () =>
437 styleMoving({ transform: null, transition: null, 'will-change': null });
438 const present = (y: number) => {
439 const shift = Math.round(base() - y);
440 styleMoving({ transform: `translateY(${shift}px)` });
441 };
442
443 // The wrapper hands touches above the drawer to the article only while
444 // the post is down and nothing of ours (a sheet, a menu, the composer)

Callers 3

settleAtFunction · 0.85
glideToFunction · 0.85
onTouchMoveFunction · 0.85

Calls 2

baseFunction · 0.85
styleMovingFunction · 0.85

Tested by

no test coverage detected