Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-08-08 13:46:10 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-08-08 14:50:31 -0700
commit9e5e82ca17040d3bed971bbb692eebc787db756f (patch)
tree40aed82f80daa8d1a2fc2bd829a8a6e10a06caa3 /node_modules/pan-zoom
parent0b27586a7f3c45016cab169661d914154a4d81ef (diff)
DEBUG: map-center crosshair
Diffstat (limited to 'node_modules/pan-zoom')
-rw-r--r--node_modules/pan-zoom/src/modules/pan.js6
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 }
);
}