Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-08-08 13:45:24 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-08-08 13:45:24 -0700
commit0b27586a7f3c45016cab169661d914154a4d81ef (patch)
treee182e2c39e714737b0ab53b853a1986dfaead89b /src/modules/pan-zoom.js
parent9d76272f7b57f9d5271b3c5e2c6d0683ff80d019 (diff)
WIP: auto-pan map to selected counter
Diffstat (limited to 'src/modules/pan-zoom.js')
-rw-r--r--src/modules/pan-zoom.js3
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) {