From c17412b858979c59be8f564fdda3967c39a7c451 Mon Sep 17 00:00:00 2001 From: Nikita Nafranets Date: Thu, 1 Feb 2024 14:10:01 +0300 Subject: [PATCH] fix: update props when TransformWrapper is updated (#449) --- src/core/instance.core.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/instance.core.ts b/src/core/instance.core.ts index 6216054..5796158 100644 --- a/src/core/instance.core.ts +++ b/src/core/instance.core.ts @@ -110,6 +110,7 @@ export class ZoomPanPinch { }; update = (newProps: ReactZoomPanPinchProps) => { + this.props = newProps; handleCalculateBounds(this, this.transformState.scale); this.setup = createSetup(newProps); };