From bee0bf21acf65dd96189b232469744cb52726eab Mon Sep 17 00:00:00 2001 From: "OWNEROR-41FNVD0\\lenovo" Date: Tue, 13 May 2025 10:32:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=9F=E5=BC=83=E6=8E=A5=E5=8F=A3=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/home/src/main/ets/view/RecommendedVideo.ets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/features/home/src/main/ets/view/RecommendedVideo.ets b/features/home/src/main/ets/view/RecommendedVideo.ets index bca7aa4..ebcb89f 100644 --- a/features/home/src/main/ets/view/RecommendedVideo.ets +++ b/features/home/src/main/ets/view/RecommendedVideo.ets @@ -163,13 +163,13 @@ export struct RecommendedVideo { .gesture(PinchGesture({ fingers: 2 }).onActionUpdate((event: GestureEvent) => { if (event.scale > 1 && this.currentWidthBreakpoint !== BreakpointConstants.BREAKPOINT_SM) { if (this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_MD) { - animateTo({ + this.getUIContext().animateTo({ duration: HomeConstants.ANIMATION_DURATION }, () => { this.videoGridColumn = CommonConstants.VIDEO_GRID_COLUMNS[1]; }) } else { - animateTo({ + this.getUIContext().animateTo({ duration: HomeConstants.ANIMATION_DURATION }, () => { this.videoGridColumn = CommonConstants.VIDEO_GRID_COLUMNS[2]; @@ -177,13 +177,13 @@ export struct RecommendedVideo { } } else if (event.scale < 1 && this.currentWidthBreakpoint !== BreakpointConstants.BREAKPOINT_SM) { if (this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_MD) { - animateTo({ + this.getUIContext().animateTo({ duration: HomeConstants.ANIMATION_DURATION }, () => { this.videoGridColumn = CommonConstants.VIDEO_GRID_COLUMNS[2]; }) } else { - animateTo({ + this.getUIContext().animateTo({ duration: HomeConstants.ANIMATION_DURATION }, () => { this.videoGridColumn = CommonConstants.VIDEO_GRID_COLUMNS[3]; -- Gitee