Fix right-click accidentally triggering chording

This commit is contained in:
Florine W. Dekker 2024-05-02 00:02:50 +02:00
parent 0c47e03a83
commit 38032255b0
Signed by: FWDekker
GPG Key ID: D3DCFAA8A4560BE0
3 changed files with 2 additions and 2 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -1,6 +1,6 @@
{
"name": "minesweeper",
"version": "0.86.4",
"version": "0.86.5",
"description": "Just Minesweeper!",
"author": "Florine W. Dekker",
"browser": "dist/bundle.js",

View File

@ -384,7 +384,7 @@ export class Game {
case 2:
if (!this.rightDown) break;
if (!this.bothHeld && !this.leftDown)
if (this.bothHeld && !this.leftDown)
this.field.chord(coords);
this.rightDown = false;