Web Dev Solutions

Catalin Mititiuc

From 23188152c91a8e638ab832fa1fa122d59d1fc391 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 8 Aug 2024 15:27:12 -0700 Subject: Add additional params to observable calls; reveal counter and record logic on selections --- node_modules/pan-zoom/src/modules/pan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node_modules/pan-zoom/src/modules') 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) { -- cgit v1.2.3