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

Change-Id: I113425e6bae2ff6f6f143526a7e06363fb8d4320
This commit is contained in:
Winson Chung committed 2019-02-25 18:56:21 +00:00
1 parent f96d74017e
commit 1de3c5078c
1 file changed
+2 -2
+2 -2
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());
}