mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-23 10:26:34 +11:00
Always send RedrawEventsCleared on iOS
This makes it consistent with the rest of the platforms in winit.
This commit is contained in:
parent
a58400a82c
commit
142d55ff24
2 changed files with 2 additions and 3 deletions
|
@ -35,6 +35,7 @@ And please only add new entries to the top of this list, right below the `# Unre
|
||||||
- Added helper methods on `ControlFlow` to set its value.
|
- Added helper methods on `ControlFlow` to set its value.
|
||||||
- On Wayland, fix `TouchPhase::Ended` always reporting the location of the first touch down, unless the compositor
|
- On Wayland, fix `TouchPhase::Ended` always reporting the location of the first touch down, unless the compositor
|
||||||
sent a cancel or frame event.
|
sent a cancel or frame event.
|
||||||
|
- On iOS, send `RedrawEventsCleared` even if there are no redraw events, consistent with other platforms.
|
||||||
|
|
||||||
# 0.26.1 (2022-01-05)
|
# 0.26.1 (2022-01-05)
|
||||||
|
|
||||||
|
|
|
@ -811,9 +811,7 @@ pub unsafe fn handle_main_events_cleared() {
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
if !redraw_events.is_empty() {
|
|
||||||
redraw_events.push(EventWrapper::StaticEvent(Event::RedrawEventsCleared));
|
redraw_events.push(EventWrapper::StaticEvent(Event::RedrawEventsCleared));
|
||||||
}
|
|
||||||
drop(this);
|
drop(this);
|
||||||
|
|
||||||
handle_nonuser_events(redraw_events);
|
handle_nonuser_events(redraw_events);
|
||||||
|
|
Loading…
Add table
Reference in a new issue