Skip to content

Commit

Permalink
fix for case when no childs
Browse files Browse the repository at this point in the history
  • Loading branch information
Suvitruf committed May 20, 2014
1 parent 4bc43a9 commit cea2785
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ protected boolean overScrollBy(int deltaX, int deltaY, int scrollX,

@Override
public boolean dispatchTouchEvent(MotionEvent ev) {

// no need when no childs
if(getChildCount() == 0)
return super.dispatchTouchEvent(ev);
float newY = ev.getRawY();

if (ev.getAction() == MotionEvent.ACTION_DOWN) {
Expand Down

0 comments on commit cea2785

Please sign in to comment.