Skip to content

Commit

Permalink
Remove WaitUntil fix since it seems to be working now
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Jul 5, 2024
1 parent 1c0dc37 commit 4f6e6c4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/eframe/src/native/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,14 @@ fn run_and_exit(

if let Some(next_repaint_time) = next_repaint_time {
// WaitUntil seems to not work on iOS
#[cfg(target_os = "ios")]
winit_app
.get_window_winit_id(ViewportId::ROOT)
.map(|window_id| {
winit_app
.window(window_id)
.map(|window| window.request_redraw())
});
// #[cfg(target_os = "ios")]
// winit_app
// .get_window_winit_id(egui::ViewportId::ROOT)
// .map(|window_id| {
// winit_app
// .window(window_id)
// .map(|window| window.request_redraw())
// });

event_loop_window_target.set_control_flow(ControlFlow::WaitUntil(next_repaint_time));
};
Expand Down

0 comments on commit 4f6e6c4

Please sign in to comment.