From a6cf65b6fe4a47b31cddb2a57f85d2e34eb642ba Mon Sep 17 00:00:00 2001 From: l30052832 Date: Fri, 21 Jun 2024 14:53:32 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Index.ets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 8879774..1c36ee8 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -40,7 +40,7 @@ import { setPhotoZoom } from '../utils/CameraShooter'; import display from '@ohos.display'; -import { curves, window } from '@kit.ArkUI'; +import { curves } from '@kit.ArkUI'; import { sensor } from '@kit.SensorServiceKit'; let previewSize: camera.Size = { @@ -269,7 +269,7 @@ struct XComponentPage { } } }) - .onActionEnd((event: GestureEvent) => { + .onActionEnd(() => { this.isShowZoom = false }) ) @@ -352,7 +352,7 @@ struct XComponentPage { surfaceHeight: 1920 } ); - zoomRatioRange = await cameraShooting(isVideo, cameraPosition, surfaceId, context, foldAbleStatus); + cameraShooting(isVideo, cameraPosition, surfaceId, context, foldAbleStatus); } }) Text(CameraConstants.RECORD) @@ -448,7 +448,7 @@ struct XComponentPage { } if (this.isPhoto) { - zoomRatioRange = await cameraShooting(isVideo, cameraPosition, surfaceId, context, foldAbleStatus); + cameraShooting(isVideo, cameraPosition, surfaceId, context, foldAbleStatus); } else { stopRecordPreview(); videoRecording(this.isStabilization, cameraPosition, qualityLevel, surfaceId, context); -- Gitee