From 9579aa95bb54ecf2361608fa5e1ab52a8b5b57fd Mon Sep 17 00:00:00 2001 From: houzh Date: Wed, 28 Feb 2024 15:39:21 +0800 Subject: [PATCH] modify View::awakenScrollBars,fix horizontalscrollview's scrolling issues --- src/gui/view/view.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/view/view.cc b/src/gui/view/view.cc index 99324139..8ea7f185 100755 --- a/src/gui/view/view.cc +++ b/src/gui/view/view.cc @@ -1061,8 +1061,7 @@ bool View::awakenScrollBars(int startDelay, bool invalidate){ if (invalidate) { // Invalidate to show the scrollbars - const Rect&r = mScrollCache->mScrollBarBounds; - postInvalidateOnAnimation(r.left,r.top,r.width,r.height); + postInvalidateOnAnimation(); } if (mScrollCache->state == ScrollabilityCache::OFF) {