visionmedia / move.js

CSS3 backed JavaScript animation framework
http://visionmedia.github.com/move.js/
4.72k stars 686 forks source link

Bashing a button with "add" or "sub" doesn't work as intended #37

Closed Koroeskohr closed 10 years ago

Koroeskohr commented 10 years ago

Bashing a button to move an element takes the value as the element is clicked during the animation to add it to the value. A callback should be awaited

yields commented 10 years ago

not sure what you mean, can you elaborate / add a snippet ?

Koroeskohr commented 10 years ago

Even visible here : http://visionmedia.github.io/move.js Add section, inspect the square and press the button quickly. You'll notice margin left will be different from 100+200n

yields commented 10 years ago

this is normal behavior, if you want it to be exact, you should .add() .on('end').