on_mouse_scroll

Function on_mouse_scroll 

Source
pub fn on_mouse_scroll(
    child: impl IntoUiNode,
    handler: Box<dyn FnMut(&MouseWheelArgs) -> HandlerResult + Send>,
) -> UiNode
Expand description

P Mouse wheel scrolled while pointer is hovering the widget and the pressed keyboard modifiers allow a scroll operation and the widget is enabled.

§Preview

You can preview this event using on_pre_mouse_scroll. Otherwise the handler is only called after the widget content has a chance to stop propagation.

§Async

You can use async event handlers with this property.