Skip to content

Commit

Permalink
Fixed #11 - End previous fling in Scroller before starting a new calc…
Browse files Browse the repository at this point in the history
…ulation
  • Loading branch information
denizmveli committed Dec 28, 2013
1 parent 79b5578 commit 767093c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1883,6 +1883,7 @@ private class FlingRunnable implements Runnable {
void start(int initialVelocity) {
int initialY = initialVelocity < 0 ? Integer.MAX_VALUE : 0;
mLastFlingY = initialY;
mScroller.forceFinished(true);
mScroller.fling(0, initialY, 0, initialVelocity, 0, Integer.MAX_VALUE, 0, Integer.MAX_VALUE);
mTouchMode = TOUCH_MODE_FLINGING;
postOnAnimate(this);
Expand Down

0 comments on commit 767093c

Please sign in to comment.