Skip to main content

scroll_to

Function scroll_to 

Source
fn scroll_to<R>(
    ui: &Ui,
    out: &ScrollAreaOutput<R>,
    axis: usize,
    offset: f32,
    max: f32,
)
Expand description

Store offset (clamped to 0..=max) on axis of out’s area if it moved, and repaint so the area shows it.