Restart animation when regaining focus

This commit is contained in:
Cory Forsstrom 2023-07-13 12:21:24 -07:00
parent 66d6710663
commit 44c0732306
No known key found for this signature in database
GPG key ID: 64D6B5851FFCAC9E

View file

@ -932,6 +932,9 @@ where
if let Some(focus) = &mut state.is_focused {
focus.is_window_focused = true;
focus.updated_at = Instant::now();
shell.request_redraw(window::RedrawRequest::NextFrame);
}
}
Event::Window(window::Event::RedrawRequested(now)) => {