Lines Matching refs:velocity
31 * Calculates the snap targets and the snap position given a position and a velocity. All positions
146 public SnapTarget calculateSnapTarget(int position, float velocity) {
147 return calculateSnapTarget(position, velocity, true /* hardDismiss */);
152 * @param velocity current dragging velocity
155 public SnapTarget calculateSnapTarget(int position, float velocity, boolean hardDismiss) {
156 if (position < mFirstSplitTarget.position && velocity < -mMinDismissVelocityPxPerSecond) {
159 if (position > mLastSplitTarget.position && velocity > mMinDismissVelocityPxPerSecond) {
162 if (Math.abs(velocity) < mMinFlingVelocityPxPerSecond) {
165 if (velocity < 0) {