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

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

DO NOT MERGE Fix a bug that could cause flings to last too long using a Scroller

Change-Id: Ia176cdb029201dbad193d2d213d3cf6e16fbee63
parent 982f1521
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -219,6 +219,10 @@ public class Scroller {
                mCurrY = Math.min(mCurrY, mMaxY);
                mCurrY = Math.max(mCurrY, mMinY);

                if (mCurrX == mFinalX && mCurrY == mFinalY) {
                    mFinished = true;
                }

                break;
            }
        }