File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ export class Slider extends Box {
139
139
const normalizedValue = normalize ( value , min , max ) ;
140
140
141
141
if ( horizontal ) {
142
- const thumbSize = this . adjustThumbSize . value ? Math . round ( ( width ) / ( max - min ) ) : 1 ;
142
+ const thumbSize = this . adjustThumbSize . value ? Math . round ( width / ( max - min ) ) : 1 ;
143
143
144
144
thumbRectangle . column = Math . min (
145
145
column + width - thumbSize ,
@@ -149,7 +149,7 @@ export class Slider extends Box {
149
149
thumbRectangle . width = thumbSize ;
150
150
thumbRectangle . height = height ;
151
151
} else {
152
- const thumbSize = this . adjustThumbSize . value ? Math . round ( ( height ) / ( max - min ) ) : 1 ;
152
+ const thumbSize = this . adjustThumbSize . value ? Math . round ( height / ( max - min ) ) : 1 ;
153
153
154
154
thumbRectangle . column = column ;
155
155
thumbRectangle . row = Math . min (
You can’t perform that action at this time.
0 commit comments