From 541f4e2f3480524dcf6e95f041acba54bb9529c5 Mon Sep 17 00:00:00 2001 From: jhumbug Date: Thu, 6 May 2021 10:08:14 -0400 Subject: [PATCH] don't mutate domain on zoom or pan event --- packages/victory-zoom-container/src/zoom-helpers.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/victory-zoom-container/src/zoom-helpers.js b/packages/victory-zoom-container/src/zoom-helpers.js index d74fe57c6..b7d49a69d 100644 --- a/packages/victory-zoom-container/src/zoom-helpers.js +++ b/packages/victory-zoom-container/src/zoom-helpers.js @@ -265,7 +265,6 @@ const RawZoomHelpers = { startX: x, startY: y, parentSVG, - domain: currentDomain, currentDomain, originalDomain, cachedZoomDomain: zoomDomain, @@ -307,7 +306,6 @@ const RawZoomHelpers = { (targetProps.zoomActive && !this.checkDomainEquality(originalDomain, lastDomain)); const mutatedProps = { - domain: currentDomain, currentDomain, originalDomain, cachedZoomDomain: zoomDomain,