Skip to content

Commit

Permalink
chore: deno fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Beast committed Sep 9, 2023
1 parent 9ffffad commit bf137a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class Slider extends Box {
const normalizedValue = normalize(value, min, max);

if (horizontal) {
const thumbSize = this.adjustThumbSize.value ? Math.round((width) / (max - min)) : 1;
const thumbSize = this.adjustThumbSize.value ? Math.round(width / (max - min)) : 1;

thumbRectangle.column = Math.min(
column + width - thumbSize,
Expand All @@ -149,7 +149,7 @@ export class Slider extends Box {
thumbRectangle.width = thumbSize;
thumbRectangle.height = height;
} else {
const thumbSize = this.adjustThumbSize.value ? Math.round((height) / (max - min)) : 1;
const thumbSize = this.adjustThumbSize.value ? Math.round(height / (max - min)) : 1;

thumbRectangle.column = column;
thumbRectangle.row = Math.min(
Expand Down

0 comments on commit bf137a8

Please sign in to comment.