]> source.dussan.org Git - jquery-ui.git/commitdiff
effects.bounce: Fixing hide bounce distance calculation
authorgnarf <gnarf@gnarf.net>
Tue, 3 May 2011 13:51:53 +0000 (08:51 -0500)
committergnarf <gnarf@gnarf.net>
Tue, 3 May 2011 13:51:53 +0000 (08:51 -0500)
ui/jquery.effects.bounce.js

index f1093839f5d609b9e41f37e8f8d96621961f9705..bb386a4f4da83da4f0a65e7a8910de1f6273f403 100644 (file)
@@ -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 = {};