Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit 767093c

Browse files
committed
Fixed #11 - End previous fling in Scroller before starting a new calculation
1 parent 79b5578 commit 767093c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

library/src/main/java/com/etsy/android/grid/ExtendableListView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,6 +1883,7 @@ private class FlingRunnable implements Runnable {
18831883
void start(int initialVelocity) {
18841884
int initialY = initialVelocity < 0 ? Integer.MAX_VALUE : 0;
18851885
mLastFlingY = initialY;
1886+
mScroller.forceFinished(true);
18861887
mScroller.fling(0, initialY, 0, initialVelocity, 0, Integer.MAX_VALUE, 0, Integer.MAX_VALUE);
18871888
mTouchMode = TOUCH_MODE_FLINGING;
18881889
postOnAnimate(this);

0 commit comments

Comments
 (0)