diff --git a/crates/bevy_winit/src/system.rs b/crates/bevy_winit/src/system.rs index 92a3ec2ca9..0bf73553d2 100644 --- a/crates/bevy_winit/src/system.rs +++ b/crates/bevy_winit/src/system.rs @@ -174,13 +174,7 @@ pub(crate) fn changed_window( if window.physical_cursor_position() != cache.window.physical_cursor_position() { if let Some(physical_position) = window.physical_cursor_position() { - let inner_size = winit_window.inner_size(); - - let position = PhysicalPosition::new( - physical_position.x, - // Flip the coordinate space back to winit's context. - inner_size.height as f32 - physical_position.y, - ); + let position = PhysicalPosition::new(physical_position.x, physical_position.y); if let Err(err) = winit_window.set_cursor_position(position) { error!("could not set cursor position: {:?}", err);