From bf137a8cdd051af4c5d07ecfa0512a3b47fc8667 Mon Sep 17 00:00:00 2001 From: Im-Beast Date: Sat, 9 Sep 2023 16:38:36 +0200 Subject: [PATCH] chore: deno fmt --- src/components/slider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/slider.ts b/src/components/slider.ts index efb62c0..9d34daf 100644 --- a/src/components/slider.ts +++ b/src/components/slider.ts @@ -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, @@ -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(