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:46:10 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-08-08 14:50:31 -0700 |
commit | 9e5e82ca17040d3bed971bbb692eebc787db756f (patch) | |
tree | 40aed82f80daa8d1a2fc2bd829a8a6e10a06caa3 /node_modules/pan-zoom/src/modules | |
parent | 0b27586a7f3c45016cab169661d914154a4d81ef (diff) |
DEBUG: map-center crosshair
Diffstat (limited to 'node_modules/pan-zoom/src/modules')
-rw-r--r-- | node_modules/pan-zoom/src/modules/pan.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/node_modules/pan-zoom/src/modules/pan.js b/node_modules/pan-zoom/src/modules/pan.js index 844524d..596d41a 100644 --- a/node_modules/pan-zoom/src/modules/pan.js +++ b/node_modules/pan-zoom/src/modules/pan.js @@ -76,11 +76,7 @@ export default function (svg, el, e) { svg.addEventListener( 'pointerup', - () => { - svg.removeEventListener('pointermove', pointerMove); - const t1Rect = t1.getBoundingClientRect(); - console.log('trooper1 DOM x,y', t1Rect.x, t1Rect.y); - }, + () => svg.removeEventListener('pointermove', pointerMove), { once: true } ); } |