mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-12-02 20:44:41 +00:00
!39846 【swiper】修复swiper不在视窗内时自动轮播
Merge pull request !39846 from ShihaoWang/fix_autoplay
This commit is contained in:
commit
6df390fc14
@ -4154,7 +4154,7 @@ void SwiperPattern::RegisterVisibleAreaChange()
|
||||
CHECK_NULL_VOID(host);
|
||||
pipeline->AddWindowStateChangedCallback(host->GetId());
|
||||
|
||||
if (hasVisibleChangeRegistered_ || !IsAutoPlay()) {
|
||||
if (hasVisibleChangeRegistered_) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -960,7 +960,7 @@ private:
|
||||
bool isInit_ = true;
|
||||
bool hasVisibleChangeRegistered_ = false;
|
||||
bool isVisible_ = true;
|
||||
bool isVisibleArea_ = true;
|
||||
bool isVisibleArea_ = false;
|
||||
bool isWindowShow_ = true;
|
||||
bool isCustomSize_ = false;
|
||||
bool indicatorIsBoolean_ = true;
|
||||
|
Loading…
Reference in New Issue
Block a user