aboutsummaryrefslogtreecommitdiffstats
path: root/ui
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>2015-04-06 16:59:45 -0400
commitbf03479cc14aa54c2e674cad87bf75c8126cb86f (patch)
tree82b73e98124d6208a1c5eacc30467a334304c645 /ui
parent65f4feb70b75fb7e086e8c9ddc238f97d825c2f9 (diff)
downloadjquery-ui-bf03479cc14aa54c2e674cad87bf75c8126cb86f.tar.gz
jquery-ui-bf03479cc14aa54c2e674cad87bf75c8126cb86f.zip
Slider: Proper animation of range
Fixes #9459 Closes gh-1530
Diffstat (limited to 'ui')
-rw-r--r--ui/slider.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/slider.js b/ui/slider.js
index 4ca9c6002..a9cec83af 100644
--- a/ui/slider.js
+++ b/ui/slider.js
@@ -610,13 +610,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 );
}
}
},