From 506f5f00a521d97ddfebcc02e0354ba39a5c93c5 Mon Sep 17 00:00:00 2001 From: longfeng Date: Tue, 30 Jan 2024 16:11:48 +0800 Subject: [PATCH] =?UTF-8?q?PinchGesture=E6=89=8B=E5=8A=BF=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=BD=93=E5=89=8D=E7=BC=A9=E6=94=BE=E5=80=8D=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: longfeng --- library/src/main/ets/components/ImageViewTouch.ets | 1 + 1 file changed, 1 insertion(+) diff --git a/library/src/main/ets/components/ImageViewTouch.ets b/library/src/main/ets/components/ImageViewTouch.ets index 7af2d93..0ff48fa 100644 --- a/library/src/main/ets/components/ImageViewTouch.ets +++ b/library/src/main/ets/components/ImageViewTouch.ets @@ -111,6 +111,7 @@ export struct ImageViewTouch { }), PinchGesture({ fingers: 2 }) .onActionStart((event?: GestureEvent) => { + this.model.currentScale = this.model.scale; }) .onActionUpdate((event?: GestureEvent) => { if (this.model.getScaleEnabled() && event) { -- Gitee