From 2daefebe1b50ddca120eb8a975f6bcc0fee26baa Mon Sep 17 00:00:00 2001 From: kangchongtao Date: Mon, 25 Apr 2022 14:16:05 +0800 Subject: [PATCH] =?UTF-8?q?swiper=E7=BB=84=E4=BB=B6=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=92=AD=E6=94=BE=E5=90=8Eonchange=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E4=B8=8D=E5=93=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: kangchongtao Change-Id: I994f62b19f5855ea213332a8bfaaa6b04bf0b198 --- frameworks/core/components/swiper/render_swiper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/frameworks/core/components/swiper/render_swiper.cpp b/frameworks/core/components/swiper/render_swiper.cpp index 36652dce..6aacf988 100644 --- a/frameworks/core/components/swiper/render_swiper.cpp +++ b/frameworks/core/components/swiper/render_swiper.cpp @@ -2895,6 +2895,7 @@ void RenderSwiper::StartIndicatorAnimation(int32_t fromIndex, int32_t toIndex, b swiper->isIndicatorAnimationStart_ = false; swiper->outItemIndex_ = fromIndex; swiper->currentIndex_ = toIndex; + swiper->FireItemChangedEvent(true); swiper->UpdateIndicatorSpringStatus(SpringStatus::FOCUS_SWITCH); swiper->MarkNeedLayout(true); }