From 201a9c2a6d1ccfdbd479a672376c01a1a262c4f2 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Tue, 21 Jul 2020 22:24:05 +0200 Subject: [PATCH] desactivate laser pointer on tile (only avaliable for desktop firefox) --- public/trivabble.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/trivabble.js b/public/trivabble.js index 7bda175..73fcef9 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1453,6 +1453,14 @@ return; } } + + if (e.type === "dblclick") { + const tilePlaceholder = boardCells[id].getElementsByClassName("tile-placeholder")[0]; + if (tilePlaceholder.getElementsByClassName("tile")[0]) { + return; + } + } + const letters = "ABCDEFGHIJKLMNO"; const col = (id % 15) + 1; const row = letters[Math.floor(id / 15)]; -- 2.30.2