Skip to content

Commit d5f6a71

Browse files
committed
effects.bounce: Fixing hide bounce distance calculation
1 parent e8bece2 commit d5f6a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.effects.bounce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ $.effects.effect.bounce = function(o) {
6969

7070
// start at the smallest distance if we are hiding
7171
if ( hide ) {
72-
distance = distance / ( ( times - 1 ) * 2 );
72+
distance = distance / Math.pow( 2, times - 1 );
7373
}
7474

7575
downAnim = {};

0 commit comments

Comments
 (0)