bugfix: pressed.

This commit is contained in:
cgspine
2021-01-15 00:33:04 +08:00
parent 5146a0bf6b
commit 3cf6be213e
@@ -647,9 +647,8 @@ public class QMUISlider extends FrameLayout implements IQMUISkinDefaultAttrProvi
mIsMoving = true;
int oldProgress = mCurrentProgress;
checkTouch(mLastTouchX, getMaxThumbOffset());
if (mIsThumbTouched) {
mThumbView.setPress(true);
}
mIsThumbTouched = true;
mThumbView.setPress(true);
if (mCallback != null && oldProgress != mCurrentProgress) {
mCallback.onLongTouch(QMUISlider.this, mCurrentProgress, mTickCount);
}