diff --git a/features/home/src/main/ets/view/RecommendedVideo.ets b/features/home/src/main/ets/view/RecommendedVideo.ets index bca7aa4d93b3270b0fe1763348067319ead71d1a..ebcb89f011e5ae37ef2fc6de2efc8a23fcbcd0ac 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];