Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
tohodog committed Mar 22, 2019
1 parent e60d2ed commit 831338e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ public boolean onTouchEvent(MotionEvent ev) {
private void setDragViewOffsetAndPro(int offset, boolean requiresUpdate) {
if (offset == currentOffset)
return;
if (draggedRefreshView == null) return;

int max = draggedRefreshView.maxDistance();
if (Math.abs(offset) > max && max > 0)
offset = offset > 0 ? max : -max;
Expand Down

0 comments on commit 831338e

Please sign in to comment.