Decrease the sample interval for the velocity tracker

Flings were made too sensitive with the resolution-independence change.
This commit is contained in:
Christopher Eby 2010-03-10 02:16:43 -06:00
parent e3f0807a98
commit a9d1941a46

View File

@ -375,7 +375,7 @@ public class CoverView extends View {
performClick(); performClick();
} else { } else {
VelocityTracker velocityTracker = mVelocityTracker; VelocityTracker velocityTracker = mVelocityTracker;
velocityTracker.computeCurrentVelocity(1000); velocityTracker.computeCurrentVelocity(250);
int velocity = (int) velocityTracker.getXVelocity(); int velocity = (int) velocityTracker.getXVelocity();
int min = mBitmaps[0] == null ? 1 : 0; int min = mBitmaps[0] == null ? 1 : 0;