Skip to main content

velocity

Function velocity 

pub fn velocity(pointer: f64, start: f64, end: f64) -> f64
Expand description

How fast, in px/s, a viewport spanning start..end on one axis scrolls under a drag at pointer on that axis: negative toward start, 0 outside the edge bands or when the viewport is too small to hold both.