Skip to content

Commit bf03479

Browse files
atomiomiscottgonzalez
authored andcommitted
Slider: Proper animation of range
Fixes #9459 Closes gh-1530
1 parent 65f4feb commit bf03479

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
@@ -610,13 +610,13 @@ return $.widget( "ui.slider", $.ui.mouse, {
610610
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: valPercent + "%" }, o.animate );
611611
}
612612
if ( oRange === "max" && this.orientation === "horizontal" ) {
613-
this.range[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
613+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, o.animate );
614614
}
615615
if ( oRange === "min" && this.orientation === "vertical" ) {
616616
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: valPercent + "%" }, o.animate );
617617
}
618618
if ( oRange === "max" && this.orientation === "vertical" ) {
619-
this.range[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
619+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, o.animate );
620620
}
621621
}
622622
},

0 commit comments

Comments
 (0)