Skip to main content

touch_ui_active

Function touch_ui_active 

Source
pub fn touch_ui_active() -> bool
Expand description

The signal the UI sizing policy consults to decide whether interactive targets must meet the touch minimum (see crate::widgets::menu::effective_metrics).

True when EITHER:

Deliberately distinct from is_mobile_touch: that one drives the on-screen keyboard and other “no physical keyboard” features, which must NOT turn on just because a touchscreen laptop was tapped once. Sizing minimums are safe to raise on any touch input, so this signal is broader.