Function zng_wgt_scroll::vertical_offset

source ยท
pub fn vertical_offset(
    child: impl UiNode,
    offset: impl IntoVar<Factor>,
) -> impl UiNode
Expand description

P Binds the vertical_offset scroll var to the property value.

The binding is bidirectional and the scroll variable is assigned on init.

Note that settings the offset directly overrides effects like smooth scrolling, prefer using the scroll commands to scroll over this property.