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

Function measureFull

packages/shared/src/components/shell/sheetDrag.ts:46–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 // The height of a sheet at the top: its overlay's, or the viewport's
45 // for a sheet that is not inside one (the menu sheet).
46 const measureFull = () =>
47 panel.closest<HTMLElement>('.shell-sheet-overlay')?.clientHeight ??
48 window.visualViewport?.height ??
49 window.innerHeight;
50
51 // The settle that is still running, so a new one or a new drag ends it.
52 let endSettle: () => void = () => undefined;

Callers 2

beginDragFunction · 0.85
onTouchMoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected