swiper组件设置自动播放后onchange事件不响应

Signed-off-by: kangchongtao <kangchongtao@huawei.com>
Change-Id: I994f62b19f5855ea213332a8bfaaa6b04bf0b198
This commit is contained in:
kangchongtao
2022-04-25 14:16:05 +08:00
parent 52f0acccb1
commit 2daefebe1b
@@ -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);
}