diff --git a/frameworks/components/ui_scroll_view.cpp b/frameworks/components/ui_scroll_view.cpp index 2ed1ccf0cc85088cbd4eb605ac4342d11584df19..bb05fe555fdd7233e24fa36e0cf7f750a3775a4f 100755 --- a/frameworks/components/ui_scroll_view.cpp +++ b/frameworks/components/ui_scroll_view.cpp @@ -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; }