modify View::awakenScrollBars,fix horizontalscrollview's scrolling issues

This commit is contained in:
houzh 2024-02-28 15:39:21 +08:00
parent fa168cc83d
commit 9579aa95bb

View File

@ -1061,8 +1061,7 @@ bool View::awakenScrollBars(int startDelay, bool invalidate){
if (invalidate) { if (invalidate) {
// Invalidate to show the scrollbars // Invalidate to show the scrollbars
const Rect&r = mScrollCache->mScrollBarBounds; postInvalidateOnAnimation();
postInvalidateOnAnimation(r.left,r.top,r.width,r.height);
} }
if (mScrollCache->state == ScrollabilityCache::OFF) { if (mScrollCache->state == ScrollabilityCache::OFF) {