Don't enter overscroll when dragging fast scrollbar.
Bug: 63298293 Change-Id: Id3a6551df265c5a92ce5da6509fdac60fb44fcb7
This commit is contained in:
parent
f593fb916e
commit
200352ca4e
|
@ -495,7 +495,8 @@ public class AllAppsRecyclerView extends BaseRecyclerView {
|
|||
public boolean onDrag(float displacement, float velocity) {
|
||||
// We are in overscroll iff we are trying to drag further down when we're already at
|
||||
// the bottom of All Apps.
|
||||
mIsInOverScroll = !canScrollVertically(1) && displacement < 0;
|
||||
mIsInOverScroll = !canScrollVertically(1) && displacement < 0
|
||||
&& !mScrollbar.isDraggingThumb();
|
||||
|
||||
if (mIsInOverScroll) {
|
||||
displacement = getDampedOverScroll(displacement);
|
||||
|
|
Loading…
Reference in New Issue