Skip to content

Commit bf137a8

Browse files
committed
chore: deno fmt
1 parent 9ffffad commit bf137a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/slider.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class Slider extends Box {
139139
const normalizedValue = normalize(value, min, max);
140140

141141
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;
143143

144144
thumbRectangle.column = Math.min(
145145
column + width - thumbSize,
@@ -149,7 +149,7 @@ export class Slider extends Box {
149149
thumbRectangle.width = thumbSize;
150150
thumbRectangle.height = height;
151151
} 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;
153153

154154
thumbRectangle.column = column;
155155
thumbRectangle.row = Math.min(

0 commit comments

Comments
 (0)