From be31b8a8f7acedc3e47eeca0fa549a2d5f3b2efd Mon Sep 17 00:00:00 2001 From: jiangdayuan Date: Tue, 29 Mar 2022 23:16:22 +0800 Subject: [PATCH] fix swiper bug Signed-off-by: jiangdayuan --- frameworks/core/components/swiper/render_swiper.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/frameworks/core/components/swiper/render_swiper.cpp b/frameworks/core/components/swiper/render_swiper.cpp index 5e0f713d..1d1bd978 100644 --- a/frameworks/core/components/swiper/render_swiper.cpp +++ b/frameworks/core/components/swiper/render_swiper.cpp @@ -978,7 +978,6 @@ void RenderSwiper::StartSpringMotion(double mainPosition, double mainVelocity, controller_->RemoveInterpolator(translate_); isAnimationAlreadyAdded_ = false; } - isIndicatorAnimationStart_ = true; scrollMotion_ = AceType::MakeRefPtr(mainPosition, mainVelocity, extent, initExtent, DEFAULT_OVER_SPRING_PROPERTY); scrollMotion_->AddListener([weakScroll = AceType::WeakClaim(this)](double position) { @@ -992,8 +991,6 @@ void RenderSwiper::StartSpringMotion(double mainPosition, double mainVelocity, springController_->AddStopListener([weak = AceType::WeakClaim(this)]() { auto swiper = weak.Upgrade(); if (swiper) { - swiper->isIndicatorAnimationStart_ = false; - swiper->RestoreAutoPlay(); swiper->ResetCachedChildren(); swiper->UpdateOneItemOpacity(MAX_OPACITY, swiper->currentIndex_);