提交 878b3ebb 编写于 作者: O openharmony_ci 提交者: Gitee

!30 Gitee Review - scroll

Merge pull request !30 from guyuanzhang/scroll
......@@ -154,7 +154,7 @@ bool UIScrollView::DragXInner(int16_t distance)
reboundSize = 0;
}
if (childRect.GetWidth() <= (GetWidth() - (scrollBlankSize_ << 1))) {
if (childRect.GetWidth() <= (GetWidth() - (scrollBlankSize_ << 1)) || !xScrollable_) {
return false;
}
......@@ -193,7 +193,7 @@ bool UIScrollView::DragYInner(int16_t distance)
reboundSize = 0;
}
if (childRect.GetHeight() <= (GetHeight() - (scrollBlankSize_ << 1))) {
if (childRect.GetHeight() <= (GetHeight() - (scrollBlankSize_ << 1)) || !yScrollable_) {
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册