Skip to main content

select_scroll_handler

Function select_scroll_handler 

Source
pub fn select_scroll_handler(
    candidates: &[(ScrollAxes, HitHandler)],
    dx: f32,
    dy: f32,
) -> Option<Arc<dyn Fn(f32, f32) + Send + Sync>>
Expand description

Shared axis-preference selection (also used for overlay scroll routes): first candidate handling the dominant delta axis, else first handling the other axis.