Skip to content

Commit

Permalink
Fix onStartTrackingTouch() listener call
Browse files Browse the repository at this point in the history
  • Loading branch information
AnderWeb committed Feb 23, 2015
1 parent 7386ab5 commit f54f0cd
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,6 @@ private boolean startDragging(MotionEvent ev, boolean ignoreTrackIfInScrollConta
bounds.inset(-mAddedTouchBounds, -mAddedTouchBounds);
mIsDragging = (bounds.contains((int) ev.getX(), (int) ev.getY()));
if (!mIsDragging && mAllowTrackClick && !ignoreTrackIfInScrollContainer) {
if (mPublicChangeListener != null) {
mPublicChangeListener.onStartTrackingTouch(this);
}

//If the user clicked outside the thumb, we compute the current position
//and force an immediate drag to it.
mIsDragging = true;
Expand All @@ -673,6 +669,9 @@ private boolean startDragging(MotionEvent ev, boolean ignoreTrackIfInScrollConta
attemptClaimDrag();
setHotspot(ev.getX(), ev.getY());
mDragOffset = (int) (ev.getX() - bounds.left - mAddedTouchBounds);
if (mPublicChangeListener != null) {
mPublicChangeListener.onStartTrackingTouch(this);
}
}
return mIsDragging;
}
Expand Down

0 comments on commit f54f0cd

Please sign in to comment.