Slider: hide slider while still auto incrementing

pull/2953/head
thyttan 2023-09-13 00:10:20 +02:00
parent 5b19330fee
commit 5df5f56888
1 changed files with 2 additions and 1 deletions

View File

@ -147,10 +147,11 @@ o.f.remove = ()=> {
};
if (o.c.autoProgress) {
o.v.shouldAutoDraw = true;
o.f.autoUpdate = ()=>{
//if (o.v.level===undefined) o.v.level = -1;
o.v.level = o.v.level+1;
o.f.draw(o.v.level);
if (o.v.shouldAutoDraw) o.f.draw(o.v.level);
cb("auto");
if (o.v.level==o.c.steps) {o.f.stopAutoUpdate();}
};