index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-08-08 16:12:21 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-08-08 16:12:21 -0700 |
commit | ca9ad3ac2a8a0b5709ae7f55dcff3a7473bb9203 (patch) | |
tree | 006e73211ae3559ce8f80bc1cbe656472e4cdc29 /src/modules | |
parent | 23188152c91a8e638ab832fa1fa122d59d1fc391 (diff) |
Add toggle for auto map-centering
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/gameboard.js | 2 |
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); } |