Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
vovcia2 committed Dec 10, 2024
1 parent 7840379 commit db3c638
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/ateatimer/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ function adjustTime(amount) {
}

function handleTouch(x, y) {
const centerX = g.getWidth() / 2;
const centerY = g.getHeight() / 2;

if (y < centerY - 40) {
Expand All @@ -107,16 +106,14 @@ function handleTouch(x, y) {
}
}
}

touchStartTime
// Handle physical button press for resetting timer
setWatch(() => {
resetTimer();
}, BTN1, { repeat: true, edge: "falling" });

// Handle touch and long touch events
let touchStartTime = 0;
// Handle touch
Bangle.on("touch", (zone, xy) => {
touchStartTime = Date.now();
handleTouch(xy.x, xy.y, false);
});

Expand Down

0 comments on commit db3c638

Please sign in to comment.