We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 599f381 commit 0e0906dCopy full SHA for 0e0906d
crates/bevy_winit/src/lib.rs
@@ -329,8 +329,8 @@ pub fn winit_runner_with(mut app: App, mut event_loop: EventLoop<()>) {
329
let winit_window = winit_windows.get_window(window_id).unwrap();
330
let mut location = touch.location.to_logical(winit_window.scale_factor());
331
332
- // FIXME?: On Android window start is top while on PC/Linux/OSX on bottom
333
- if cfg!(target_os = "android") {
+ // On a mobile window, the start is from the top while on PC/Linux/OSX from bottom
+ if cfg!(target_os = "android") || cfg!(target_os = "ios") {
334
let window_height = windows.get_primary().unwrap().height();
335
location.y = window_height - location.y;
336
}
0 commit comments