Skip to content

Commit a3d5838

Browse files
committed
Fix #525
1 parent eac02ad commit a3d5838

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

library/src/com/sothree/slidinguppanel/ViewDragHelper.java

+6
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,12 @@ public boolean continueSettling(boolean deferCallbacks) {
723723
final int y = mScroller.getCurrY();
724724
final int dx = x - mCapturedView.getLeft();
725725
final int dy = y - mCapturedView.getTop();
726+
727+
if(!keepGoing && dy != 0) { //fix #525
728+
//Invalid drag state
729+
mCapturedView.setTop(0);
730+
return true;
731+
}
726732

727733
if (dx != 0) {
728734
mCapturedView.offsetLeftAndRight(dx);

0 commit comments

Comments
 (0)