Skip to main content

distance

Function distance 

pub fn distance(velocity: f64, elapsed: Duration) -> f64
Expand description

How far velocity scrolls over a frame of elapsed; a stalled frame counts as at most EDGE_AUTOSCROLL_MAX_STEP, so it does not fling.