Fix small issue with overscroll not being dampened on the left edge.

Change-Id: I113425e6bae2ff6f6f143526a7e06363fb8d4320
This commit is contained in:
Winson Chung 2019-02-22 15:07:30 -08:00
parent f96d74017e
commit 1de3c5078c
1 changed files with 2 additions and 2 deletions

View File

@ -1024,8 +1024,8 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
return;
}
if (amount < 0) {
super.scrollTo(amount, getScrollY());
if (overScrollAmount < 0) {
super.scrollTo(overScrollAmount, getScrollY());
} else {
super.scrollTo(mMaxScrollX + overScrollAmount, getScrollY());
}