UI: Improve slider widget step calculation.
This commit is contained in:
parent
4dc3d0ee78
commit
a755d4d851
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user