added longer delay before resetting accelHandler

pull/2623/head
Le~Kat 2023-02-25 13:36:24 -05:00
parent 4d37934556
commit 479a2da3ab
3 changed files with 5 additions and 4 deletions

View File

@ -18,3 +18,4 @@
1.16: enabled button usage & temporarily disabled acceleration 1.16: enabled button usage & temporarily disabled acceleration
1.17: made changes to when accelHandler gets overwritten, temporarily disabled button usage 1.17: made changes to when accelHandler gets overwritten, temporarily disabled button usage
1.18: decided to keep around the button even while testing, disabled all safety round the accelHandler self-triggering 1.18: decided to keep around the button even while testing, disabled all safety round the accelHandler self-triggering
1.19: added longer delay before resetting accelHandler

View File

@ -83,12 +83,12 @@ function accelHandler (xyz) {
if (xyz.diff >= 0.3) { if (xyz.diff >= 0.3) {
//Bangle.on ('accel', voidFn); // temporarily disable more acceleration events Bangle.on ('accel', voidFn); // temporarily disable more acceleration events
menu = false; menu = false;
rollDice (function() { rollDice (function() {
//Bangle.on ('accel', accelHandler); // re-enable acceleration events Bangle.on ('accel', accelHandler); // re-enable acceleration events
}); });
} }
} }
@ -135,7 +135,7 @@ function vibrate (timeoutFunctionRef) {
Bangle.buzz(50, 0.5).then (() => { Bangle.buzz(50, 0.5).then (() => {
setTimeout (timeoutFunctionRef, 50); setTimeout (timeoutFunctionRef, 150);
}); });
} }

View File

@ -1,7 +1,7 @@
{ "id": "multidice", { "id": "multidice",
"name": "multiple dice roller", "name": "multiple dice roller",
"shortName":"multidice", "shortName":"multidice",
"version":"1.18", "version":"1.19",
"description": "roll anywhere from 1-8 dice at the same time", "description": "roll anywhere from 1-8 dice at the same time",
"icon": "app.png", "icon": "app.png",
"tags": "tool,game", "tags": "tool,game",