Merge "Adapted the minimum velocity amount needed to perform an overscroll"

This commit is contained in:
Selim Cinek
2014-05-13 15:56:55 +00:00
committed by Android (Google) Code Review

View File

@@ -758,7 +758,7 @@ public class NotificationStackScrollLayout extends ViewGroup
final int range = getScrollRange();
if (y < 0 && oldY >= 0 || y > range && oldY <= range) {
float currVelocity = mScroller.getCurrVelocity();
if (currVelocity >= mMinimumVelocity * 20) {
if (currVelocity >= mMinimumVelocity) {
mMaxOverScroll = Math.abs(currVelocity) / 1000 * mOverflingDistance;
}
}