@@ -701,6 +701,7 @@ export class Slider extends PureComponent<SliderProps, SliderState> {
701
701
const minTrackWidth = _startFromZero
702
702
? Math . abs ( _value ) * sliderWidthCoefficient - thumbSize . width / 2
703
703
: interpolatedTrackValues [ 0 ] ;
704
+ const maxTrackWidth = interpolatedTrackValues [ 1 ] ;
704
705
const clearBorderRadius = { } as ViewStyle ;
705
706
if ( _startFromZero && _value < 0 + step ) {
706
707
clearBorderRadius . borderBottomRightRadius = 0 ;
@@ -716,14 +717,11 @@ export class Slider extends PureComponent<SliderProps, SliderState> {
716
717
left :
717
718
interpolatedTrackValues . length === 1
718
719
? new Animated . Value ( startPositionOnTrack )
719
- : Animated . add ( minThumbValue , thumbSize . width / 2 ) ,
720
+ : Animated . add ( minTrackWidth , thumbSize . width / 2 ) ,
720
721
width :
721
722
interpolatedTrackValues . length === 1
722
723
? Animated . add ( minTrackWidth , thumbSize . width / 2 )
723
- : Animated . add (
724
- Animated . multiply ( minThumbValue , - 1 ) ,
725
- maxThumbValue ,
726
- ) ,
724
+ : Animated . add ( Animated . multiply ( minTrackWidth , - 1 ) , maxTrackWidth ) ,
727
725
backgroundColor : minimumTrackTintColor ,
728
726
...valueVisibleStyle ,
729
727
...clearBorderRadius ,
0 commit comments