Skip to content

Commit 0c311f1

Browse files
committed
fix: 🐛 Fixes onChange hooks
1 parent f004816 commit 0c311f1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/core/instance.core.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,9 @@ export class ZoomPanPinch {
413413
this.transformState.positionX = positionX;
414414
this.transformState.positionY = positionY;
415415

416+
this.applyTransformation();
416417
const ctx = getContext(this);
417418
this.onChangeCallbacks.forEach((callback) => callback(ctx));
418-
419-
this.applyTransformation();
420419
handleCallback(ctx, { scale, positionX, positionY }, onTransformed);
421420
} else {
422421
console.error("Detected NaN set state values");

0 commit comments

Comments
 (0)