Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

windows: Fix click bleeding through collab follow (#41726)

Anthony Eidd5421ba1a8b8
diff --git a/crates/title_bar/src/collab.rs b/crates/title_bar/src/collab.rs
index 070952d1cec..16a0389efa4 100644
--- a/crates/title_bar/src/collab.rs
+++ b/crates/title_bar/src/collab.rs
@@ -220,6 +220,8 @@ impl TitleBar {
.on_click({
let peer_id = collaborator.peer_id;
cx.listener(move |this, _, window, cx| {
+ cx.stop_propagation();
+
this.workspace
.update(cx, |workspace, cx| {
if is_following {