Skip to content

Commit

Permalink
Vertical scrollbar bug in updateScrollPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeerias committed Dec 16, 2024
1 parent 961b02d commit d7f4a72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void updateScrollPosition(int offsetX, int offsetY) {
int verticalContentLength = mRecyclerView.computeVerticalScrollRange();
int verticalVisibleLength = mRecyclerViewHeight;
mNeedVerticalScrollbar = verticalContentLength - verticalVisibleLength > 0
&& mRecyclerViewHeight >= mScrollbarMinimumRange || mNeedHorizontalScrollbar;
&& mRecyclerViewHeight >= mScrollbarMinimumRange || mNeedVerticalScrollbar;

int horizontalContentLength = mRecyclerView.computeHorizontalScrollRange();
int horizontalVisibleLength = mRecyclerViewWidth;
Expand Down

0 comments on commit d7f4a72

Please sign in to comment.