Searched refs:distanceRatio (Results 1 – 3 of 3) sorted by relevance
679 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dy) / height);681 distanceInfluenceForSnapDuration(distanceRatio);
1696 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize)); in snapToPageWithVelocity() local1698 distanceInfluenceForSnapDuration(distanceRatio); in snapToPageWithVelocity()
3606 val distanceRatio = delta / width in calculateDuration() constant3607 val distanceInfluenceForSnapDuration = distanceInfluenceForSnapDuration(distanceRatio) in calculateDuration()3622 distanceRatio + " distance:" + distance + " velocity:" + velocity + in calculateDuration()