Skip to content

Commit

Permalink
chess: Disable button when alert is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
nxdefiant committed Jul 6, 2023
1 parent b8ddb0c commit bcde01f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/chess/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ Bangle.on('touch', (button, xy) => {

// show menu on button
setWatch(() => {
if (showmenu) {
return;
}
showmenu = true;
piece_sel = 0;
startfield[0] = startfield[1] = undefined;
Expand Down

0 comments on commit bcde01f

Please sign in to comment.