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

Function dropGlide

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

Source from the content-addressed store, hash-verified

594 let glideFrame = 0;
595 let afterGlide: (() => void) | undefined;
596 const dropGlide = () => {
597 cancelAnimationFrame(glideFrame);
598 glideTarget = null;
599 afterGlide = undefined;
600 };
601 const settleAt = (target: number) => {
602 virtualY = null;
603 setLayout(target >= current.full ? 'full' : 'card');

Callers 3

landGlideFunction · 0.85
glideToFunction · 0.85
ReadingDrawerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected