1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00
This commit is contained in:
Emil Ernerfeldt
2024-08-26 15:35:44 +02:00
committed by GitHub
parent b84a1e2a29
commit 0513c05768
2 changed files with 16 additions and 7 deletions

View File

@@ -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)