Skip to content

Commit

Permalink
Merge pull request #16 from ultraon/master
Browse files Browse the repository at this point in the history
Fixed scrolling issue
  • Loading branch information
oli107 committed Nov 11, 2015
2 parents 83509af + f50da13 commit 2426b21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rangebar/src/com/appyvet/rangebar/RangeBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
* RangeBar thumb will snap to the nearest tick mark.
* This version is forked from edmodo range bar
* https://github.com/edmodo/range-bar.git
* <p>
* Clients of the RangeBar can attach a
* {@link com.appyvet.rangebar.RangeBar.OnRangeBarChangeListener} to be notified when the pins
* have
Expand Down Expand Up @@ -431,10 +432,13 @@ public boolean onTouchEvent(MotionEvent event) {
return true;

case MotionEvent.ACTION_UP:
case MotionEvent.ACTION_CANCEL:
this.getParent().requestDisallowInterceptTouchEvent(false);
onActionUp(event.getX(), event.getY());
return true;

case MotionEvent.ACTION_CANCEL:
this.getParent().requestDisallowInterceptTouchEvent(false);
return false;

case MotionEvent.ACTION_MOVE:
onActionMove(event.getX());
Expand Down

0 comments on commit 2426b21

Please sign in to comment.