Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-08-08 15:27:12 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-08-08 15:27:12 -0700
commit23188152c91a8e638ab832fa1fa122d59d1fc391 (patch)
treed8568304a5b4b91f4864a540619493a511a4bb24 /node_modules/pan-zoom/src/modules/pan.js
parentb970b34a8848a65a44f1e3a64465270845371492 (diff)
Add additional params to observable calls; reveal counter and record logic on selections
Diffstat (limited to 'node_modules/pan-zoom/src/modules/pan.js')
-rw-r--r--node_modules/pan-zoom/src/modules/pan.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/pan-zoom/src/modules/pan.js b/node_modules/pan-zoom/src/modules/pan.js
index 428f4b4..98fc74b 100644
--- a/node_modules/pan-zoom/src/modules/pan.js
+++ b/node_modules/pan-zoom/src/modules/pan.js
@@ -35,7 +35,7 @@ export function manualPan(gb, counter) {
gb.style.transition = 'transform 0.5s';
gb.style.transform = mtx.multiply(getTranslateMatrix(startPt, movePt));
- gb.addEventListener('transitionend', () => gb.style.transition = '');
+ gb.addEventListener('transitionend', () => gb.style.transition = '', { once: true });
}
export default function (svg, el, e) {