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.

pane: stop propagation of drag/click events in resizing handle

Piotr Osiewiczb6d8665fc1bc
diff --git a/crates/workspace/src/pane_group.rs b/crates/workspace/src/pane_group.rs
index e631cd9c436..476592f3745 100644
--- a/crates/workspace/src/pane_group.rs
+++ b/crates/workspace/src/pane_group.rs
@@ -698,6 +698,7 @@ mod element {
workspace
.update(cx, |this, cx| this.schedule_serialize(cx))
.log_err();
+ cx.stop_propagation();
cx.refresh();
}
@@ -754,8 +755,10 @@ mod element {
workspace
.update(cx, |this, cx| this.schedule_serialize(cx))
.log_err();
+
cx.refresh();
}
+ cx.stop_propagation();
}
}
});