Lines Matching refs:distance
59 // the min drag distance for a fling to register, to prevent random page shifts
1443 // We want the duration of the page snap animation to be influenced by the distance that
1445 // purely linear fashion. Instead, we use this method to moderate the effect that the distance
1471 // Here we compute a "distance" that will be used in the computation of the overall
1472 // snap duration. This is a function of the actual distance that needs to be traveled;
1474 // duration as a function of the distance the page needs to travel.
1476 float distance = halfScreenSize + halfScreenSize *
1485 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));