mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Effects (Shake): Divide duration by number of animation steps. Fixed: #8531 - Shake effect: Duration is multiplied based on number of shakes.
This commit is contained in:
parent
13fa4a9dac
commit
dec9c54632
2
ui/jquery.ui.effect-shake.js
vendored
2
ui/jquery.ui.effect-shake.js
vendored
@ -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 = {},
|
||||
|
Loading…
Reference in New Issue
Block a user