From e4ed233aeb0c2d6dd49ca4fa2bc8b766be788a1b Mon Sep 17 00:00:00 2001 From: jrmoulton Date: Sat, 19 Oct 2024 19:29:54 -0600 Subject: [PATCH] add scroll to view on gain focus --- src/app_state.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app_state.rs b/src/app_state.rs index 6c30cacd..35eb4c80 100644 --- a/src/app_state.rs +++ b/src/app_state.rs @@ -314,6 +314,7 @@ impl AppState { id.request_style_recursive(); } id.apply_event(&EventListener::FocusGained, &Event::FocusGained); + id.scroll_to(None); } if let Some(old_id) = old {