mirror of https://github.com/espruino/BangleApps
Implement move down with one click.
parent
87afbe8938
commit
ade2df3f0f
|
@ -177,8 +177,13 @@ Bangle.on("drag", (e) => {
|
|||
if (e.y < h) {
|
||||
if (e.x < h)
|
||||
rotate();
|
||||
else
|
||||
move(0, 1);
|
||||
else {
|
||||
let i = 0;
|
||||
for (i=0; i<10; i++) {
|
||||
move(0, 1);
|
||||
g.flip();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (e.x < h)
|
||||
move(-1, 0);
|
||||
|
|
Loading…
Reference in New Issue