From f10ff2199d358ee82ba9add8fb0dba52da910212 Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.com⁩> Date: Sun, 3 Sep 2023 23:21:40 +0200 Subject: [PATCH] SliderInput: fix inability to initiate w level 0 --- modules/SliderInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/SliderInput.js b/modules/SliderInput.js index bde37760e..cbe3697e6 100644 --- a/modules/SliderInput.js +++ b/modules/SliderInput.js @@ -59,7 +59,7 @@ if (o.c.horizontal) { o.c.r = {x:o.c.xStart, y:o.c.yStart, x2:o.c.xStart+o.c.width, y2:o.c.yStart+o.c.height, w:o.c.width, h:o.c.height}; // Initialize the level -o.v.level = o.c.currLevel || o.c.steps/2; +o.v.level = (o.c.currLevel||o.c.currLevel===0)?o.c.currLevel:o.c.steps/2; o.v.firstRun = true; o.v.ebLast = 0;