Slider: disregard laziness on max/min levels

master
thyttan 2023-10-09 18:17:35 +02:00
parent bcb6e0ca01
commit 01cf0fb202
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ try { // For making it possiblie to run the test app in the following catch stat
cbObj = {mode:"incr", value:incr};
}
}
if (o.v.level != o.v.prevLevel) {
if (o.v.level!==o.v.prevLevel || o.v.level===0 || o.v.level===o.c.steps) {
o.f.draw&&o.f.draw(o.v.level);
cb(cbObj.mode, cbObj.value);
}