Skip to content

Commit a3bf778

Browse files
atomiomiscottgonzalez
authored andcommitted
Slider: Proper animation of range
Fixes #9459 Closes jquerygh-1530 (cherry picked from commit bf03479)
1 parent cd47545 commit a3bf778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/slider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,13 +625,13 @@ return $.widget( "ui.slider", $.ui.mouse, {
625625
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: valPercent + "%" }, o.animate );
626626
}
627627
if ( oRange === "max" && this.orientation === "horizontal" ) {
628-
this.range[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
628+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, o.animate );
629629
}
630630
if ( oRange === "min" && this.orientation === "vertical" ) {
631631
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: valPercent + "%" }, o.animate );
632632
}
633633
if ( oRange === "max" && this.orientation === "vertical" ) {
634-
this.range[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
634+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, o.animate );
635635
}
636636
}
637637
},

0 commit comments

Comments
 (0)