Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/pan-zoom')
-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) {