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

Function settle

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

Source from the content-addressed store, hash-verified

52 let endSettle: () => void = () => undefined;
53
54 const settle = () => {
55 endSettle();
56 panel.removeAttribute('data-dragging');
57 style.transform = '';
58 style.height = '';
59 style.maxHeight = '';
60 style.transition = '';
61 style.removeProperty('--sheet-gap');
62 };
63
64 const settleTo = (expanded: boolean) => {
65 endSettle();

Callers 2

onTouchEndFunction · 0.70
attachSheetDragFunction · 0.70

Calls 1

endSettleFunction · 0.85

Tested by

no test coverage detected