Skip to content

Commit 5c304b3

Browse files
committed
Upload file
1 parent 001906c commit 5c304b3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

common/src/main/java/com/omarea/overscroll/OverScrollDelegate.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,7 @@ private boolean onTouchEventInternal(MotionEvent event) {
526526
case MotionEvent.ACTION_CANCEL: {
527527
if (mOffsetY != 0f) {
528528
// Sping back to 0
529-
int boost = Math.min(400, Math.abs(mReleaseVelocityY) / 3);
530-
final int startScrollY = Math.round(mOffsetY + (mOffsetY > 0 ? boost : -boost));
529+
final int startScrollY = Math.round(mOffsetY * 1.2f);
531530
// mScroller.startScroll(0, startScrollY, 0, -startScrollY,
532531
// SPRING_BACK_DURATION);
533532
// mPath.reset();

0 commit comments

Comments
 (0)