zng_wgt_input::touch

Function on_touch_enter

source
pub fn on_touch_enter(
    child: impl UiNode,
    handler: impl WidgetHandler<TouchedArgs>,
) -> impl UiNode
Expand description

P Touch contact is now over the widget or a descendant and it is enabled.

§Preview

You can preview this event using on_pre_touch_enter. 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.