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

@ -5891,6 +5891,7 @@ async fn test_right_click_menu_behind_collab_panel(cx: &mut TestAppContext) {
position: new_tab_button_bounds.center(),
modifiers: Modifiers::default(),
click_count: 1,
first_mouse: false,
});
// regression test that the right click menu for tabs does not open.
@ -5902,6 +5903,7 @@ async fn test_right_click_menu_behind_collab_panel(cx: &mut TestAppContext) {
position: tab_bounds.center(),
modifiers: Modifiers::default(),
click_count: 1,
first_mouse: false,
});
assert!(cx.debug_bounds("MENU_ITEM-Close").is_some());
}