ios: fix timers

Fixes #4074.
Fixes #3816.
This commit is contained in:
Mads Marquart 2025-02-06 10:56:10 +01:00 committed by GitHub
parent 5e6350d142
commit 2230e71093
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -228,3 +228,4 @@ changelog entry.
- On Windows, fixed the event loop not waking on accessibility requests.
- On X11, fixed cursor grab mode state tracking on error.
- On X11, fixed crash with uim
- On iOS, maybe fixed high CPU usage even when using `ControlFlow::Wait`.

View file

@ -239,6 +239,7 @@ impl AppState {
(ControlFlow::Wait, ControlFlow::Wait) => {
let start = Instant::now();
self.set_state(AppStateImpl::Waiting { start });
self.waker.stop()
},
(ControlFlow::WaitUntil(old_instant), ControlFlow::WaitUntil(new_instant))
if old_instant == new_instant =>