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

Commit b40c42f1 authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug 2639949 - Don't stop a Scroller early

Change-Id: Ia827199a27d03289b6fa573dd6f2b13517943400
parent 81ac367b
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -203,9 +203,6 @@ public class Scroller {
    
                mCurrX = mStartX + Math.round(x * mDeltaX);
                mCurrY = mStartY + Math.round(x * mDeltaY);
                if ((mCurrX == mFinalX) && (mCurrY == mFinalY)) {
                    mFinished = true;
                }
                break;
            case FLING_MODE:
                float timePassedSeconds = timePassed / 1000.0f;
@@ -222,10 +219,6 @@ public class Scroller {
                mCurrY = Math.min(mCurrY, mMaxY);
                mCurrY = Math.max(mCurrY, mMinY);
                
                if (mCurrX == mFinalX && mCurrY == mFinalY) {
                    mFinished = true;
                }
                
                break;
            }
        }