Convert OS file drag and drop enter event into a mouse move, not mouse click

This commit is contained in:
Kirill Bulatov 2023-12-07 14:34:36 +02:00
parent 2a82dff2fe
commit f829120f51

View file

@ -1269,10 +1269,9 @@ impl<'a> WindowContext<'a> {
cursor_offset: position, cursor_offset: position,
}); });
} }
InputEvent::MouseDown(MouseDownEvent { InputEvent::MouseMove(MouseMoveEvent {
position, position,
button: MouseButton::Left, pressed_button: Some(MouseButton::Left),
click_count: 1,
modifiers: Modifiers::default(), modifiers: Modifiers::default(),
}) })
} }