Skip to content

Commit 00793c6

Browse files
authored
Merge pull request umano#746 from talentprince/bug/saving-state-while-dragging
Save wrong state while dragging or in drag motion
2 parents 214025a + 7f63b88 commit 00793c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/src/main/java/com/sothree/slidinguppanel/SlidingUpPanelLayout.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,9 @@ private void applyParallaxForCurrentSlideOffset() {
11251125
}
11261126

11271127
private void onPanelDragged(int newTop) {
1128-
mLastNotDraggingSlideState = mSlideState;
1128+
if (mSlideState != PanelState.DRAGGING) {
1129+
mLastNotDraggingSlideState = mSlideState;
1130+
}
11291131
setPanelStateInternal(PanelState.DRAGGING);
11301132
// Recompute the slide offset based on the new top position
11311133
mSlideOffset = computeSlideOffset(newTop);

0 commit comments

Comments
 (0)