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

Function endDrag

packages/shared/src/components/shell/ShellCluster.tsx:380–390  ·  view source on GitHub ↗
(settleOn?: number)

Source from the content-addressed store, hash-verified

378 };
379
380 const endDrag = (settleOn?: number) => {
381 if (lens.current && settleOn !== undefined) {
382 settleLens(settleOn);
383 } else {
384 stopLens();
385 }
386 pointer.current = null;
387 setDrag(null);
388 setPressed(false);
389 setPull(0);
390 };
391
392 // A finger that lifts away from the bar (capture refused, or the release
393 // lands outside) still ends the press, so the bar never stays lifted.

Callers 4

endFunction · 0.85
onPointerLeaveFunction · 0.85
onPointerUpFunction · 0.85
ShellClusterFunction · 0.85

Calls 2

settleLensFunction · 0.85
stopLensFunction · 0.85

Tested by

no test coverage detected