Function zng::access::scroll_horizontal
source ยท pub fn scroll_horizontal(
child: impl UiNode,
normal_x: impl IntoVar<Factor>,
) -> impl UiNode
Expand description
P
Sets the amount scrolled horizontally if allowed.
The normal_x
value can be a read-only variable, the variable can be updated without needing to rebuild
info for every pixel scrolled, if the view-process requires access info the value is updated every render
together with the widget bounds updates.
The value must be normalized in the 0..=1 range, 0 is showing the content leftmost edge, 1 is showing the content the rightmost edge.