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 13:45:24 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-08-08 13:45:24 -0700 |
commit | 0b27586a7f3c45016cab169661d914154a4d81ef (patch) | |
tree | e182e2c39e714737b0ab53b853a1986dfaead89b /src/modules/pan-zoom.js | |
parent | 9d76272f7b57f9d5271b3c5e2c6d0683ff80d019 (diff) |
WIP: auto-pan map to selected counter
Diffstat (limited to 'src/modules/pan-zoom.js')
-rw-r--r-- | src/modules/pan-zoom.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/pan-zoom.js b/src/modules/pan-zoom.js index d13c90f..5e224e8 100644 --- a/src/modules/pan-zoom.js +++ b/src/modules/pan-zoom.js @@ -19,6 +19,9 @@ function addEventListeners(svg, el) { pan(svg, el, e), { passive: false }; } }); + svg.addEventListener('pointermove', e => { + console.log('clientX,clientY', `${e.clientX},${e.clientY}`); + }); } function storePanZoomVal(transformMatrix) { |