File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -511,13 +511,12 @@ export class Slider extends Component<SliderStyleProps> {
511511 return orientation === 'horizontal' ? x : y ;
512512 }
513513
514- private setValuesOffset ( stOffset : number , endOffset : number = 0 , animate : boolean = false ) {
514+ private setValuesOffset ( stOffset : number , endOffset : number = 0 ) {
515515 const { type } = this . attributes ;
516516 const [ oldStartVal , oldEndVal ] = this . getValues ( ) ;
517517 const internalStartOffset = type === 'range' ? stOffset : 0 ;
518518 const values = [ oldStartVal + internalStartOffset , oldEndVal + endOffset ] . sort ( ) as [ number , number ] ;
519- if ( animate ) this . setValues ( values ) ;
520- else this . innerSetValues ( values , true ) ;
519+ this . innerSetValues ( values , true ) ;
521520 }
522521
523522 private getRatio ( val : number ) {
@@ -550,7 +549,7 @@ export class Slider extends Component<SliderStyleProps> {
550549 const offset = deltaY || deltaX ;
551550 const deltaVal = this . getRatio ( offset ) ;
552551
553- this . setValuesOffset ( deltaVal , deltaVal , true ) ;
552+ this . setValuesOffset ( deltaVal , deltaVal ) ;
554553 }
555554 }
556555
You can’t perform that action at this time.
0 commit comments