is_mouse_active

Function is_mouse_active 

Source
pub fn is_mouse_active(
    child: impl IntoUiNode,
    state: impl IntoVar<bool>,
) -> UiNode
Expand description

P If the mouse pointer moved over or interacted with the widget within a time duration defined by contextual mouse_active_config.

This property is useful for implementing things like a media player widget, where the mouse cursor and controls vanish after the mouse stops moving for a time.

See also is_pointer_active for an aggregate gesture that covers mouse and touch.