fix: Set haptic feedback duration for button presses to 30ms
This commit is contained in:
@@ -554,7 +554,7 @@ function buttonPress(val) {
|
||||
}
|
||||
break;
|
||||
case 'B':
|
||||
Bangle.buzz();
|
||||
Bangle.buzz(30);
|
||||
if (isDecimal) {
|
||||
isDecimal = false;
|
||||
displayOutput(currNumber);
|
||||
@@ -585,7 +585,7 @@ function buttonPress(val) {
|
||||
if (swipeEnabled) drawNumbers();
|
||||
break;
|
||||
case '.':
|
||||
Bangle.buzz();
|
||||
Bangle.buzz(30);
|
||||
specials.R.val = 'C';
|
||||
if (!swipeEnabled) drawKey('R', specials.R);
|
||||
isDecimal = true;
|
||||
@@ -646,7 +646,7 @@ function buttonPress(val) {
|
||||
}
|
||||
break;
|
||||
default: {
|
||||
Bangle.buzz();
|
||||
Bangle.buzz(30);
|
||||
specials.R.val = 'C';
|
||||
if (!swipeEnabled) drawKey('R', specials.R);
|
||||
const is0Negative = (currNumber === 0 && 1/currNumber === -Infinity);
|
||||
|
||||
Reference in New Issue
Block a user