diff --git a/src/runtime/motion/spring.ts b/src/runtime/motion/spring.ts index d85bc3ae30..ce93646dcc 100644 --- a/src/runtime/motion/spring.ts +++ b/src/runtime/motion/spring.ts @@ -115,7 +115,7 @@ export function spring(value?: T, opts: SpringOpts = {}): Spring { inv_mass = Math.min(inv_mass + inv_mass_recovery_rate, 1); last_time = Math.max(last_time, now - tick * limit); - while ( last_time < now ) { + while (last_time < now) { const elapsed = Math.min(tick, now - last_time); last_time += elapsed;