Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/gameboard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js
index 6359083..4218833 100644
--- a/src/modules/gameboard.js
+++ b/src/modules/gameboard.js
@@ -192,7 +192,7 @@ function select(data, opts) {
if (isSelected || !data) return;
- if (opts?.revealCounter) {
+ if (opts?.revealCounter && document.querySelector('#auto-center-map').checked) {
const gb = svg.querySelector('.gameboard');
if (gb.contains(counter)) manualPan(gb, counter);
}