Skip to main content

touch_seen_this_session

Function touch_seen_this_session 

Source
pub fn touch_seen_this_session() -> bool
Expand description

Whether any real touch lifecycle event has fired this session. Sticky once set (it does not age out), so it can serve as the runtime-fallback half of the menu sizing-policy signal in crate::input_profile::touch_ui_active: a phone whose shell forgot to call set_input_profile still grows its menus to finger size the moment the user first touches the screen.