Permalink
Browse files

Fix onStartTrackingTouch() listener call

  • Loading branch information...
AnderWeb committed Feb 23, 2015
1 parent 7386ab5 commit f54f0cd64cd33da9effe9103d80bcc408178d171
@@ -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;
@@ -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;
}

0 comments on commit f54f0cd

Please sign in to comment.