Skip to content

Commit

Permalink
don't mutate domain on zoom or pan event
Browse files Browse the repository at this point in the history
  • Loading branch information
jhumbug committed May 6, 2021
1 parent e65abc9 commit 541f4e2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/victory-zoom-container/src/zoom-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ const RawZoomHelpers = {
startX: x,
startY: y,
parentSVG,
domain: currentDomain,
currentDomain,
originalDomain,
cachedZoomDomain: zoomDomain,
Expand Down Expand Up @@ -307,7 +306,6 @@ const RawZoomHelpers = {
(targetProps.zoomActive && !this.checkDomainEquality(originalDomain, lastDomain));

const mutatedProps = {
domain: currentDomain,
currentDomain,
originalDomain,
cachedZoomDomain: zoomDomain,
Expand Down

0 comments on commit 541f4e2

Please sign in to comment.