mirror of https://github.com/espruino/BangleApps
Slider: hide slider while still auto incrementing
parent
5b19330fee
commit
5df5f56888
|
@ -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();}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue