aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAblay Keldibek <atomio.ak@gmail.com>2015-04-06 16:58:55 -0400
committerScott González <scott.gonzalez@gmail.com>2016-06-09 13:24:36 -0400
commita3bf7786d6305826afa4d4de1e2fa2202a4bb91c (patch)
treedbe6046e8536ca56ea4968cd9ae205429a0f90b0
parentcd4754599e1939bca7cf4ffd965490909c7e0699 (diff)
downloadjquery-ui-a3bf7786d6305826afa4d4de1e2fa2202a4bb91c.tar.gz
jquery-ui-a3bf7786d6305826afa4d4de1e2fa2202a4bb91c.zip
Slider: Proper animation of range
Fixes #9459 Closes gh-1530 (cherry picked from commit bf03479cc14aa54c2e674cad87bf75c8126cb86f)
-rw-r--r--ui/slider.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/slider.js b/ui/slider.js
index e15b4984e..24ab6e167 100644
--- a/ui/slider.js
+++ b/ui/slider.js
@@ -625,13 +625,13 @@ return $.widget( "ui.slider", $.ui.mouse, {
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: valPercent + "%" }, o.animate );
}
if ( oRange === "max" && this.orientation === "horizontal" ) {
- this.range[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
+ this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, o.animate );
}
if ( oRange === "min" && this.orientation === "vertical" ) {
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: valPercent + "%" }, o.animate );
}
if ( oRange === "max" && this.orientation === "vertical" ) {
- this.range[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
+ this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, o.animate );
}
}
},