Skip to main content

scroll_handle

Function scroll_handle 

Source
pub fn scroll_handle(handle: &UniformListScrollHandle) -> ScrollHandle
Expand description

The pixel-space scroll handle inside a UniformListScrollHandle.

uniform_list tracks its scrolling through this one, so it carries the offset, the maximum offset and the viewport that crate::scroll::thumb needs — a virtualized list takes the same bar as any other scroller, with no second implementation behind a trait.

The clone shares state rather than copying it: the returned handle is the list’s, and moving one moves the other.