Slider: move `let incr` into `while` scope
parent
2444e75628
commit
98a6417008
|
|
@ -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;
|
o.v.dy += o.c.horizontal?-e.dx:e.dy;
|
||||||
//if (!e.b) o.v.dy=0;
|
//if (!e.b) o.v.dy=0;
|
||||||
|
|
||||||
let incr;
|
|
||||||
while (Math.abs(o.v.dy)>32) {
|
while (Math.abs(o.v.dy)>32) {
|
||||||
|
let incr;
|
||||||
if (o.v.dy>0) { o.v.dy-=32; incr = 1;}
|
if (o.v.dy>0) { o.v.dy-=32; incr = 1;}
|
||||||
else { o.v.dy+=32; incr = -1;}
|
else { o.v.dy+=32; incr = -1;}
|
||||||
Bangle.buzz(20);
|
Bangle.buzz(20);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue