Slider: move `let incr` into `while` scope

master
thyttan 2023-09-29 21:06:50 +02:00
parent 2444e75628
commit 98a6417008
1 changed files with 1 additions and 1 deletions

View File

@ -110,8 +110,8 @@ try { // for making it possiblie to run the test app in the following catch stat
o.v.dy += o.c.horizontal?-e.dx:e.dy;
//if (!e.b) o.v.dy=0;
let incr;
while (Math.abs(o.v.dy)>32) {
let incr;
if (o.v.dy>0) { o.v.dy-=32; incr = 1;}
else { o.v.dy+=32; incr = -1;}
Bangle.buzz(20);