Expand description
Drag-to-scroll single-child wrapper (the iced Scrollable analog).
Wraps one child and makes it scrollable with the shared scroll engine: a 1:1 drag pans the content, a fast release flings with friction, over-dragging an edge stretches then springs back, and a thumb shows the position.
Like the scrollable containers, the host owns a ScrollState (widgets
are transient) and passes it via Scrollable::scroll_state; the wrapper
reads it during layout/draw and emits ScrollMsg through
Scrollable::on_scroll. The host applies those in update() and drives
momentum with tick_task. For multi-child
content, make a Column/Row/Grid scrollable directly instead.
Structsยง
- Scrollable
- A scrollable viewport wrapping a single child.