Structs§
- Horizontal
Scroll State - X-only state
- Scroll
Axis Binding - Callbacks for a single-axis (vertical or horizontal) scroll container.
- Scroll
Both Binding - Callbacks for a 2D (both-axis) scroll container.
- Scroll
Physics - Handles velocity estimation from input deltas, frame-rate-independent exponential decay, edge snapping, and animation state tracking.
- Scroll
State - Inertial scroll state (single axis Y).
- Scroll
StateXY - 2D state
- Scrollbar
Style
Enums§
- Scroll
Axis - Axis (or axes) a scroll modifier operates on.
- Scroll
Binding
Constants§
- SCROLL_
DECAY_ PER_ 60HZ - Per-60Hz-frame velocity decay at low speed. Higher stops the fling sooner.
- SCROLL_
FLING_ ACTIVATE_ VELOCITY - A gesture must exceed this speed (px/s) to leave a fling behind.
- SCROLL_
OVERSROLL_ BAND_ MAX - Rubber-band asymptote: overscroll never stretches past this many px.
- SCROLL_
STOP_ VELOCITY - Fling is abandoned once speed falls below this (px/s).
Functions§
- os_
scroll_ axis - Fold
leftoverinto one axis’s rubber band after the nested parent chain has declined it. Returns whatever is still unconsumed. - rubber_
band - Asymptotic rubber band: never reaches
max, so pulling harder always moves a little more without ever running away. - run_
post_ scroll - run_
pre_ scroll - tick_
os_ axis - Decay one axis’s rubber band back to rest. Returns true while it is active.