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