DEBUG: map-center crosshair

This commit is contained in:
2025-06-16 22:41:33 -07:00
parent a85a2d6575
commit 5ee42370e9
4 changed files with 32 additions and 5 deletions

View File

@@ -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 }
);
}