From e629ba6fb7c0ccdb4ff23556d94f8121fa20f19d Mon Sep 17 00:00:00 2001 From: Rosa Hase <1872366+daxcore@users.noreply.github.com> Date: Thu, 26 Jun 2025 17:40:50 +0000 Subject: [PATCH] fix pinch to zoom --- src/component/helper/RoamController.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/component/helper/RoamController.ts b/src/component/helper/RoamController.ts index 4c057412e5..574db7f330 100644 --- a/src/component/helper/RoamController.ts +++ b/src/component/helper/RoamController.ts @@ -409,9 +409,8 @@ class RoamController extends Eventful { ) { return; } - const scale = e.pinchScale > 1 ? 1.1 : 1 / 1.1; this._checkTriggerMoveZoom(this, 'zoom', null, e, { - scale: scale, originX: e.pinchX, originY: e.pinchY, isAvailableBehavior: null + scale: e.pinchScale, originX: e.pinchX, originY: e.pinchY, isAvailableBehavior: null }); } @@ -577,4 +576,4 @@ function isAvailableBehavior( ); } -export default RoamController; \ No newline at end of file +export default RoamController;