diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 8879774571443a52e7ca8c8c0131de96dc9b3cb7..1c36ee8584744ad0c1142f33d6cc987a0cad3bc2 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);