From a755d4d8518c64d47123026520a7c5a1000754ac Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Wed, 14 Feb 2024 18:14:27 +0200 Subject: [PATCH] UI: Improve slider widget step calculation. --- .../home/components/widget/lib/rpc/slider-widget.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/rpc/slider-widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/rpc/slider-widget.component.ts index 74b3dab326..37b5319d44 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/rpc/slider-widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/rpc/slider-widget.component.ts @@ -176,7 +176,7 @@ export class SliderWidgetComponent extends if (this.settings.showTickMarks) { const range = this.settings.tickMax - this.settings.tickMin; - this.sliderStep = Math.floor(range / (this.settings.tickMarksCount - 1)); + this.sliderStep = range / (this.settings.tickMarksCount - 1); } const mainColorInstance = tinycolor(this.settings.mainColor);