diff --git a/src/static/js/pad_utils.js b/src/static/js/pad_utils.js index d200420e6..a2c1472d3 100644 --- a/src/static/js/pad_utils.js +++ b/src/static/js/pad_utils.js @@ -308,11 +308,7 @@ var padutils = { { animationState = -1; } - else if (animationState <= 0) - { - animationState = animationState; - } - else + else if (animationState > 0) { animationState = Math.max(-1, Math.min(0, -animationState)); }