This commit is contained in:
Emil Ernerfeldt 2024-08-26 15:35:44 +02:00 committed by GitHub
parent b84a1e2a29
commit 0513c05768
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 7 deletions

View File

@ -239,13 +239,13 @@ impl EpiIntegration {
use winit::event::{ElementState, MouseButton, WindowEvent}; use winit::event::{ElementState, MouseButton, WindowEvent};
match event { if let WindowEvent::MouseInput {
WindowEvent::MouseInput { button: MouseButton::Left,
button: MouseButton::Left, state: ElementState::Pressed,
state: ElementState::Pressed, ..
.. } = event
} => self.can_drag_window = true, {
_ => {} self.can_drag_window = true;
} }
egui_winit.on_window_event(window, event) egui_winit.on_window_event(window, event)

View File

@ -1666,6 +1666,15 @@ pub fn create_winit_window_attributes(
pixels_per_point * pos.y, 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 { if let Some(icon) = icon {
let winit_icon = to_winit_icon(&icon); let winit_icon = to_winit_icon(&icon);