From f829120f51f96f607889fce194ef5898cb7430e5 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 7 Dec 2023 14:34:36 +0200 Subject: [PATCH] Convert OS file drag and drop enter event into a mouse move, not mouse click --- crates/gpui2/src/window.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/gpui2/src/window.rs b/crates/gpui2/src/window.rs index 1e26a7cf07..a668e5d120 100644 --- a/crates/gpui2/src/window.rs +++ b/crates/gpui2/src/window.rs @@ -1269,10 +1269,9 @@ impl<'a> WindowContext<'a> { cursor_offset: position, }); } - InputEvent::MouseDown(MouseDownEvent { + InputEvent::MouseMove(MouseMoveEvent { position, - button: MouseButton::Left, - click_count: 1, + pressed_button: Some(MouseButton::Left), modifiers: Modifiers::default(), }) }