Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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) {