Speed up CoverView scrolling a bit

This commit is contained in:
Christopher Eby 2011-09-26 19:31:31 -05:00
parent fa24f2aa0f
commit 7c98ba54ed

View File

@ -227,9 +227,6 @@ public final class CoverView extends View implements Handler.Callback {
}
}
if (Math.abs(mStartX - x) + Math.abs(mStartY - y) > 10)
mHandler.removeMessages(MSG_LONG_CLICK);
mLastMotionX = x;
mLastMotionY = y;
break;
@ -373,8 +370,10 @@ public final class CoverView extends View implements Handler.Callback {
generateBitmap((Song)message.obj);
break;
case MSG_LONG_CLICK:
mIgnoreNextUp = true;
performLongClick();
if (Math.abs(mStartX - mLastMotionX) + Math.abs(mStartY - mLastMotionY) < 10) {
mIgnoreNextUp = true;
performLongClick();
}
break;
default:
return false;