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

Function settleAt

packages/shared/src/components/shell/ReadingDrawer.tsx:601–612  ·  view source on GitHub ↗
(target: number)

Source from the content-addressed store, hash-verified

599 afterGlide = undefined;
600 };
601 const settleAt = (target: number) => {
602 virtualY = null;
603 setLayout(target >= current.full ? 'full' : 'card');
604 clearMoving();
605 if (layout === 'card') {
606 restY = target;
607 if (target !== current.card) {
608 present(target);
609 }
610 }
611 update();
612 };
613 const landGlide = () => {
614 if (glideTarget === null) {
615 return;

Callers 2

landGlideFunction · 0.85
glideToFunction · 0.85

Calls 4

setLayoutFunction · 0.85
clearMovingFunction · 0.85
presentFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected