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

Function land

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

Source from the content-addressed store, hash-verified

557 // it lands the band above the drawer keeps the page's own color, then
558 // fades to the article.
559 const land = () => {
560 window.clearTimeout(opening);
561 opening = 0;
562 clearMoving();
563 root.classList.remove('reading-opening', 'reading-closing');
564 };
565 // Arriving from a feed card, the drawer rises from the bottom of the
566 // screen, as a presented sheet does; from the post page it sinks from
567 // where the page stood.

Callers 2

ReadingDrawerFunction · 0.70
onTouchStartFunction · 0.70

Calls 1

clearMovingFunction · 0.85

Tested by

no test coverage detected