pull/2369/head
Hank 2022-12-07 12:18:14 +01:00
parent 9cd7106f38
commit 383f18f92f
3 changed files with 9 additions and 12 deletions

View File

@ -9,4 +9,4 @@
0.23: Added note to configure position in "my location" if not done yet. Small fixes.
0.24: Added fast load
0.25: Minor code optimization
0.26: Swipe down to rotate 180°
0.26: BJS2: Swipe down to rotate 180 degree

View File

@ -14,7 +14,7 @@ Provide names and the UTC offsets for up to three other timezones in the app sto
The clock does not handle summer time / daylight saving time changes automatically. If one of your three locations changes its UTC offset, you can simply change the setting in the app store and update. Currently the clock only supports 24 hour time format for the additional time zones.
Swipe down to rotate screen. So you can show the time to a friend real quick.
BangleJS2: Swipe down to rotate screen. So you can show the time to a friend real quick.
## Requests

View File

@ -332,19 +332,17 @@ if (BANGLEJS2) {
if (Math.abs(dx)>Math.abs(dy)+10) {
// horizontal
if (dx < dy) {
// for later purpose
} else {
// for later purpose
}
} else if (Math.abs(dy)>Math.abs(dx)+10) {
// vertical
if (dx < dy) {
g.clear().setRotation(2);
//console.log("
draw();
Bangle.loadWidgets();
Bangle.drawWidgets();
} else {
g.clear().setRotation(0);
draw();
@ -354,16 +352,16 @@ if (BANGLEJS2) {
} else {
//console.log("tap " + e.x + " " + e.y);
if (e.x > 145 && e.y > 145) {
// for later purpose
}
}
}
});
} else {
//setWatch(addDrink, BTN1, { repeat: true, debounce:50 });
//setWatch(removeDrink, BTN3, { repeat: true, debounce:50 });
//setWatch(previousDrink, BTN4, { repeat: true, debounce:50 });
//setWatch(nextDrink, BTN5, { repeat: true, debounce:50 });
//setWatch(xxx, BTN1, { repeat: true, debounce:50 }); // maybe adding this later
//setWatch(xxx, BTN3, { repeat: true, debounce:50 });
//setWatch(xxx, BTN4, { repeat: true, debounce:50 });
//setWatch(xxx, BTN5, { repeat: true, debounce:50 });
}
}
@ -402,7 +400,6 @@ if (!Bangle.isLocked()) { // Initial state
updatePos();
}
draw(); // draw immediately, queue redraw
}