File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ export default class Slider extends PureBaseComponent {
250
250
}
251
251
252
252
if ( this . minTrack ) {
253
- this . _minTrackStyles . width = x ;
253
+ this . _minTrackStyles . width = Math . min ( this . state . trackSize . width , x ) ;
254
254
this . minTrack . setNativeProps ( this . _minTrackStyles ) ;
255
255
}
256
256
}
@@ -306,7 +306,7 @@ export default class Slider extends PureBaseComponent {
306
306
const relativeValue = minimumValue - v ;
307
307
const value = minimumValue < 0 ? Math . abs ( relativeValue ) : v - minimumValue ; // for negatives
308
308
const ratio = value / range ;
309
- const x = ratio * ( this . state . trackSize . width - this . initialThumbSize . width / 2 ) ;
309
+ const x = ratio * this . state . trackSize . width ;
310
310
return x ;
311
311
}
312
312
You can’t perform that action at this time.
0 commit comments