Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b657deaf authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

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

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