()
| 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. |
no outgoing calls
no test coverage detected