From dec9c54632be191947c310b402810cf6f1b4250a Mon Sep 17 00:00:00 2001 From: Bernhard Sirlinger Date: Thu, 30 Aug 2012 11:23:07 -0400 Subject: [PATCH] Effects (Shake): Divide duration by number of animation steps. Fixed: #8531 - Shake effect: Duration is multiplied based on number of shakes. --- ui/jquery.ui.effect-shake.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {}, -- 2.39.5