aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.bounce.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.effects.bounce.js')
-rw-r--r--ui/jquery.effects.bounce.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.effects.bounce.js b/ui/jquery.effects.bounce.js
index 1ffd5ed5a..bb386a4f4 100644
--- a/ui/jquery.effects.bounce.js
+++ b/ui/jquery.effects.bounce.js
@@ -23,7 +23,7 @@ $.effects.effect.bounce = function(o) {
hide = mode === "hide",
show = mode === "show",
direction = o.direction || "up",
- distance = o.distance || 20,
+ distance = o.distance,
times = o.times || 5,
// number of internal animations
@@ -53,7 +53,7 @@ $.effects.effect.bounce = function(o) {
// default distance for the BIGGEST bounce is the outer Distance / 3
if ( !distance ) {
- distance = el[ ref === "top" ? "outerHeight" : "outerWidth" ]({ margin:true }) / 3;
+ distance = el[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3;
}
if ( show ) {
@@ -69,7 +69,7 @@ $.effects.effect.bounce = function(o) {
// start at the smallest distance if we are hiding
if ( hide ) {
- distance = distance / ( ( times - 1 ) * 2 );
+ distance = distance / Math.pow( 2, times - 1 );
}
downAnim = {};