Skip to content

Commit

Permalink
fix: update props when TransformWrapper is updated (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimensi authored Feb 1, 2024
1 parent bc3399d commit c17412b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/instance.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export class ZoomPanPinch {
};

update = (newProps: ReactZoomPanPinchProps) => {
this.props = newProps;
handleCalculateBounds(this, this.transformState.scale);
this.setup = createSetup(newProps);
};
Expand Down

0 comments on commit c17412b

Please sign in to comment.