diff --git a/crates/eframe/src/native/epi_integration.rs b/crates/eframe/src/native/epi_integration.rs index 3edc0992..65b54d65 100644 --- a/crates/eframe/src/native/epi_integration.rs +++ b/crates/eframe/src/native/epi_integration.rs @@ -239,13 +239,13 @@ impl EpiIntegration { use winit::event::{ElementState, MouseButton, WindowEvent}; - match event { - WindowEvent::MouseInput { - button: MouseButton::Left, - state: ElementState::Pressed, - .. - } => self.can_drag_window = true, - _ => {} + if let WindowEvent::MouseInput { + button: MouseButton::Left, + state: ElementState::Pressed, + .. + } = event + { + self.can_drag_window = true; } egui_winit.on_window_event(window, event) diff --git a/crates/egui-winit/src/lib.rs b/crates/egui-winit/src/lib.rs index fe60cb8c..c35d2878 100644 --- a/crates/egui-winit/src/lib.rs +++ b/crates/egui-winit/src/lib.rs @@ -1666,6 +1666,15 @@ pub fn create_winit_window_attributes( pixels_per_point * pos.y, )); } + #[cfg(target_os = "ios")] + { + // Unused: + _ = pixels_per_point; + _ = position; + _ = inner_size; + _ = min_inner_size; + _ = max_inner_size; + } if let Some(icon) = icon { let winit_icon = to_winit_icon(&icon);