提交 7fcf3b5f 编写于 作者: G guyuanzhang

Description:fix list rotate disable drage back err

Sig:graphic
Feature or Bugfix:Feature
Binary Source:No
Signed-off-by: Nguyuanzhang <zhangguyuan@huawei.com>
上级 7ceb5b82
......@@ -369,9 +369,9 @@ bool UIAbstractScroll::OnRotateEndEvent(const RotateEvent& event)
} else {
current = {0, lastRotateLen_};
}
DragThrowAnimator(current, {0, 0}, dir);
DragThrowAnimator(current, {0, 0}, dir, dragBack_);
} else {
DragThrowAnimator({0, 0}, {0, 0}, dir);
DragThrowAnimator({0, 0}, {0, 0}, dir, dragBack_);
}
lastRotateLen_ = 0;
return UIView::OnRotateEndEvent(event);
......
......@@ -471,6 +471,7 @@ protected:
uint8_t scrollBarSide_;
Point scrollBarCenter_;
bool scrollBarCenterSetFlag_;
bool dragBack_ = true;
#if DEFAULT_ANIMATION
friend class BarEaseInOutAnimator;
BarEaseInOutAnimator* barEaseInOutAnimator_ = nullptr;
......
......@@ -480,7 +480,6 @@ private:
int16_t onSelectedIndex_;
Recycle recycle_;
ListScrollListener* scrollListener_;
bool dragBack_ = true;
};
} // namespace OHOS
#endif // GRAPHIC_LITE_UI_LIST_H
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册