diff options
author | Bernhard Sirlinger <bernhard.sirlinger@tele2.de> | 2012-08-30 11:23:07 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-08-30 11:23:07 -0400 |
commit | dec9c54632be191947c310b402810cf6f1b4250a (patch) | |
tree | efd0900a99e437a97d7ab1de9920163f212989eb /ui/jquery.ui.effect-shake.js | |
parent | 13fa4a9dac1ea993b659602f51b2fec28fa2b8f9 (diff) | |
download | jquery-ui-dec9c54632be191947c310b402810cf6f1b4250a.tar.gz jquery-ui-dec9c54632be191947c310b402810cf6f1b4250a.zip |
Effects (Shake): Divide duration by number of animation steps. Fixed: #8531 - Shake effect: Duration is multiplied based on number of shakes.
Diffstat (limited to 'ui/jquery.ui.effect-shake.js')
-rw-r--r-- | ui/jquery.ui.effect-shake.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.effect-shake.js b/ui/jquery.ui.effect-shake.js index fd9605d0a..9ae3968d6 100644 --- a/ui/jquery.ui.effect-shake.js +++ b/ui/jquery.ui.effect-shake.js @@ -22,7 +22,7 @@ $.effects.effect.shake = function( o, done ) { distance = o.distance || 20, times = o.times || 3, anims = times * 2 + 1, - speed = o.duration, + speed = Math.round(o.duration/anims), ref = (direction === "up" || direction === "down") ? "top" : "left", positiveMotion = (direction === "up" || direction === "left"), animation = {}, |