Skip to main content

edge_scroll

Function edge_scroll 

Source
pub fn edge_scroll(y: f32, top: f32, bottom: f32) -> f32
Expand description

How far to scroll this frame for a pointer at y over a viewport spanning top..bottom: nothing in the middle, up to SPEED at and past either edge, proportionally within EDGE of it.