From bf03479cc14aa54c2e674cad87bf75c8126cb86f Mon Sep 17 00:00:00 2001 From: Ablay Keldibek Date: Mon, 6 Apr 2015 16:58:55 -0400 Subject: Slider: Proper animation of range Fixes #9459 Closes gh-1530 --- ui/slider.js | 4 ++-- 1 file 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 ); } } }, -- cgit v1.2.3