mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-11 21:00:35 +00:00
gpui: Do not emit MouseUpEvent when exiting drag & drop (#9273)
Fixes #9198 Release Notes: - Fixed a bug where empty panes could be created during drag & drop.
This commit is contained in:
parent
ac4bbb6135
commit
427d66990c
1 changed files with 4 additions and 6 deletions
|
@ -1157,12 +1157,10 @@ impl<'a> WindowContext<'a> {
|
|||
click_count: 1,
|
||||
})
|
||||
}
|
||||
FileDropEvent::Exited => PlatformInput::MouseUp(MouseUpEvent {
|
||||
button: MouseButton::Left,
|
||||
position: Point::default(),
|
||||
modifiers: Modifiers::default(),
|
||||
click_count: 1,
|
||||
}),
|
||||
FileDropEvent::Exited => {
|
||||
self.active_drag.take();
|
||||
PlatformInput::FileDrop(FileDropEvent::Exited)
|
||||
}
|
||||
},
|
||||
PlatformInput::KeyDown(_) | PlatformInput::KeyUp(_) => event,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue