Skip to main content

scroll_begin_overlay

Function scroll_begin_overlay 

Source
pub fn scroll_begin_overlay<S: Spec>(
    cx: &mut OverlayCx<'_, S>,
    id: &str,
    viewport: Rect,
    sv: &mut ScrollView,
    content_h: f64,
    wheel: bool,
    st: &ScrollStyle,
) -> f64
Expand description

Input half: sets the extent, applies this frame’s wheel when the pointer is over viewport (and wheel is allowed), advances inertia, follows a thumb drag, pages on a track press. Returns the offset to paint the content at.