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

Function stopLens

packages/shared/src/components/shell/ShellCluster.tsx:272–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270 };
271
272 const stopLens = () => {
273 if (lens.current) {
274 cancelAnimationFrame(lens.current.frame);
275 lens.current = null;
276 }
277 };
278
279 // One spring step per frame: position chases the finger, the squash
280 // follows the speed, and the lens stays lifted while held.

Callers 2

settleLensFunction · 0.85
endDragFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected