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.

workspace: Stop middle-click event propagation on tab close (#49305)

Arthur Jean8dbef08bbb96
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs
index ca8e0dce44d..c270ab63c38 100644
--- a/crates/workspace/src/pane.rs
+++ b/crates/workspace/src/pane.rs
@@ -2855,6 +2855,7 @@ impl Pane {
pane.close_item_by_id(item_id, SaveIntent::Close, window, cx)
.detach_and_log_err(cx);
+ cx.stop_propagation();
}),
)
.on_drag(