zng::scroll

Function v_wheel_unit

source
pub fn v_wheel_unit(
    child: impl UiNode,
    unit: impl IntoVar<Length>,
) -> impl UiNode
Expand description

P Vertical offset added when the mouse wheel is scrolling by lines.

The unit value is multiplied by the MouseScrollDelta::LineDelta y value to determinate the scroll delta.

This property sets the VERTICAL_WHEEL_UNIT_VAR`.