Expand description
Pure scroll state, metrics, and wheel normalization.
§Examples
use ailloli_ui_core::scroll::{ScrollAxes, ScrollState};
assert_eq!(ScrollState::new().offset, ailloli_ui_core::Offset::default());
assert!(ScrollAxes::BOTH.vertical);Pure logical scroll metrics, clamping, reveal, and wheel normalization.
Structs§
- Scroll
Axes - Scrollable axes for a viewport.
- Scroll
Behavior - Wheel normalization and per-widget scroll tuning.
- Scroll
Metrics - Viewport/content sizes used to clamp a scroll state.
- Scroll
Outcome - Result of applying scroll logic.
- Scroll
State - Persistent logical scroll offset. Positive values move the viewport into content.
- Scrollbar
Drag - Pointer-relative state retained while dragging one scrollbar thumb.
- Scrollbar
Geometry - Resolved proportional scrollbar geometry in one coordinate space.
- Scrollbar
Geometry Spec - Inputs used to resolve one proportional scrollbar.
Enums§
- Scrollbar
Axis - Main axis of one scrollbar.
- Scrollbar
Part - Interactive part under a pointer within one scrollbar hit region.