skevy / wobble

A tiny (~1.7 KB gzipped) spring physics micro-library that models a damped harmonic oscillator.
https://wobble-demos.now.sh
MIT License
842 stars 19 forks source link

Spring doesn't start if you constantly change destination #4

Closed appsforartists closed 7 years ago

appsforartists commented 7 years ago

I tried building an interaction where toValue is determined by the user's pointer. The spring doesn't start animating until the gesture rests, because _reset() is called inside updateConfig(), which keeps t locked at 0.

I'll have to keep thinking about this to find the best solution. Some options:

appsforartists commented 7 years ago

http://codereview.cc/D3324