1
0
Fork 0

libslider: disable timeout

...by passing in `timeout:'no'`.
master
thyttan 2023-08-15 23:37:16 +02:00
parent 3b174337f3
commit a00fdc1d12
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ let remove = ()=> {
cb("remove", prevLevel);
};
let timeout = setTimeout(remove, 1000*TIMEOUT);
let timeout;
if (TIMEOUT!=='no') timeout = setTimeout(remove, 1000*TIMEOUT);
let dy = 0;
g.reset();