oa::ui::classify_scroll

Classify an SDL3 wheel event into a UiScrollGesture. Heuristic: integer_x/y non-zero → discrete wheel; ctrl held → pinch fallback; otherwise smooth trackpad pan.

FnRust public API

Function Documentation

pub fn classify_scroll( integer_x: i32, integer_y: i32, modifiers: UiModifiers ) -> UiScrollGesture
Classify an SDL3 wheel event into a UiScrollGesture. Heuristic: integer_x/y non-zero → discrete wheel; ctrl held → pinch fallback; otherwise smooth trackpad pan.