Function zng_wgt_input::is_touched
source ยท pub fn is_touched(child: impl UiNode, state: impl IntoVar<bool>) -> impl UiNode
Expand description
P
If a touch contact point is over the widget or a descendant and the it is enabled.
This state property does not consider pointer capture, if the pointer is captured by the widget
but is not actually over the widget this is false
, use is_cap_touched
to include the captured state.
This state property also does not consider where the touch started, if it started in a different widget
and is not over this widget the widget is touched, use is_touched_from_start
to ignore touched that move in.
The value is always false
when the widget is not ENABLED
.