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 } ); } diff --git a/public/assets/css/style.css b/public/assets/css/style.css index 3f6cd88..a708375 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -1,3 +1,12 @@ +.horz, .vert { + border: 1px solid black; + position: absolute; + padding: 0; + margin: 0; + box-sizing: border-box; + pointer-events: none; +} + body { margin: 0; display: flex; diff --git a/public/index.html b/public/index.html index 33d7085..4aeaaa0 100644 --- a/public/index.html +++ b/public/index.html @@ -344,6 +344,11 @@ +
+ + + +