Skip to main content

contain_scroll

Function contain_scroll 

Source
pub fn contain_scroll(
    view: Stateful<Div>,
    handle: &ScrollHandle,
) -> Stateful<Div>
Expand description

A scroll area inside a scrolling page keeps the wheel while it has content to scroll, so the page does not move with it. Its own scroll listener runs first, then this one stops the event before it reaches the page.