Skip to content

Commit

Permalink
Merge pull request #29 from Aspsine/dev
Browse files Browse the repository at this point in the history
fix status >= swipe to refresh open drawer (MotionEvent.ACTION_CANCEL…
  • Loading branch information
Aspsine committed Dec 19, 2015
2 parents 4609b4a + d94daae commit d0a709d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,8 @@ protected boolean canChildScrollDown() {
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
final int action = MotionEventCompat.getActionMasked(ev);
switch (action){
switch (action) {
case MotionEvent.ACTION_CANCEL:
case MotionEvent.ACTION_UP:
// swipeToRefresh -> finger up -> finger down if the status is still swipeToRefresh
// in onInterceptTouchEvent ACTION_DOWN event will stop the scroller
Expand Down

0 comments on commit d0a709d

Please sign in to comment.