Skip to main content

AutoScroll

Function AutoScroll 

Source
pub fn AutoScroll(_: AutoScrollProps) -> Element
Expand description

A scrollable container that scrolls itself while a drag hovers near its edges. Give it the overflow CSS yourself (via style/class).

ยงProps

For details, see the props struct definition.

  • threshold : f64

    Edge band size in px.

  • speed : f64

    Max scroll px per event.

  • axis : ScrollAxis

    Axes to scroll.

  • active : Option<bool>

    Optional external drag-state gate. Some(true) scrolls on pointer movement, Some(false) suppresses it, and None uses the built-in pointer contact heuristic.

  • attributes : Vec<Attribute>
  • children : Element