diff --git a/frameworks/components/ui_list.cpp b/frameworks/components/ui_list.cpp index 4e9c3947cd593311e07b12f0966073cb911ba7a1..46fac6ee052a2621c90fb8992e0b0b2395ed7b85 100755 --- a/frameworks/components/ui_list.cpp +++ b/frameworks/components/ui_list.cpp @@ -593,7 +593,7 @@ void UIList::MoveChildByOffset(int16_t xOffset, int16_t yOffset) } else { width = view->GetRelativeRect().GetWidth(); if ((GetChildrenHead()->GetX() - GetChildrenHead()->GetStyle(STYLE_MARGIN_LEFT) + xOffset > - selectPosition_) || + selectPosition_) || (childrenTail_->GetX() + width + childrenTail_->GetStyle(STYLE_MARGIN_RIGHT) < selectPosition_)) { onSelectedIndex_ = NULL_SELECT_INDEX; onSelectedView_ = nullptr;