We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eac02ad commit a3d5838Copy full SHA for a3d5838
1 file changed
library/src/com/sothree/slidinguppanel/ViewDragHelper.java
@@ -723,6 +723,12 @@ public boolean continueSettling(boolean deferCallbacks) {
723
final int y = mScroller.getCurrY();
724
final int dx = x - mCapturedView.getLeft();
725
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
+ }
732
733
if (dx != 0) {
734
mCapturedView.offsetLeftAndRight(dx);
0 commit comments