Handle first click on Zed window (#9553)

Fixes #4336
This commit is contained in:
Daniel Zhu 2024-03-25 10:52:18 -07:00 committed by GitHub
parent 5361a4d72d
commit 569a7234fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 33 additions and 11 deletions

View file

@ -1450,7 +1450,7 @@ impl ProjectPanel {
.ml_1(),
)
.on_click(cx.listener(move |this, event: &gpui::ClickEvent, cx| {
if event.down.button == MouseButton::Right {
if event.down.button == MouseButton::Right || event.down.first_mouse {
return;
}
if !show_editor {