Loading gallerycommon/src/com/android/gallery3d/common/OverScroller.java +1 −1 Original line number Diff line number Diff line Loading @@ -855,7 +855,7 @@ public class OverScroller { float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration)); final float sign = Math.signum(mVelocity); if (distance > mOver) { if (Math.abs(distance) > mOver) { // Default deceleration is not sufficient to slow us down before boundary mDeceleration = - sign * mVelocity * mVelocity / (2.0f * mOver); distance = mOver; Loading Loading
gallerycommon/src/com/android/gallery3d/common/OverScroller.java +1 −1 Original line number Diff line number Diff line Loading @@ -855,7 +855,7 @@ public class OverScroller { float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration)); final float sign = Math.signum(mVelocity); if (distance > mOver) { if (Math.abs(distance) > mOver) { // Default deceleration is not sufficient to slow us down before boundary mDeceleration = - sign * mVelocity * mVelocity / (2.0f * mOver); distance = mOver; Loading