Skip to content
Permalink
Browse files

Effects (Shake): Divide duration by number of animation steps. Fixed:…

… #8531 - Shake effect: Duration is multiplied based on number of shakes.
  • Loading branch information...
Bernhard Sirlinger authored and scottgonzalez committed Aug 30, 2012
1 parent 13fa4a9 commit dec9c54632be191947c310b402810cf6f1b4250a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 = {},

0 comments on commit dec9c54

Please sign in to comment.
You can’t perform that action at this time.