Skip to main content

Module scroll

Module scroll 

Source
Expand description

App-side scroll request types.

Apps push ScrollRequests via crate::App::drain_scroll_requests; the layout pass resolves each one against the matching scroll container’s live viewport rect and writes the resulting offset into the scroll state so the same frame’s render reflects the new position.

Mirrors crate::toast: the App produces fire-and-forget descriptors and the runtime resolves them with state that’s only fully known mid-frame.

Enums§

ScrollAlignment
Where in the viewport a row-targeted ScrollRequest should land its target row.
ScrollRequest
What the app produces from crate::App::drain_scroll_requests. Three shapes today: