Soft'N'Design Software
/
projects
/
trivabble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff8bb5c
)
desactivate laser pointer on tile (only avaliable for desktop firefox)
author
Laurent Mazet
<mazet@softndesign.org>
Tue, 21 Jul 2020 20:24:05 +0000
(22:24 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Tue, 21 Jul 2020 20:24:05 +0000
(22:24 +0200)
public/trivabble.js
patch
|
blob
|
blame
|
history
diff --git
a/public/trivabble.js
b/public/trivabble.js
index 7bda1758781917b020cc5f42df4caaa1b6918837..73fcef952ac7a0849fd54384e704c162c8fcd997 100644
(file)
--- 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)];