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.

Don't stop propagation on mouse move over editor gutter

Max Brunsfelde655d2434a88
diff --git a/crates/editor2/src/element.rs b/crates/editor2/src/element.rs
index cf34863ba6d..8ccae59172d 100644
--- a/crates/editor2/src/element.rs
+++ b/crates/editor2/src/element.rs
@@ -564,8 +564,6 @@ impl EditorElement {
);
}
}
-
- cx.stop_propagation();
} else {
update_go_to_definition_link(editor, None, modifiers.command, modifiers.shift, cx);
hover_at(editor, None, cx);
diff --git a/crates/workspace2/src/dock.rs b/crates/workspace2/src/dock.rs
index 3997b8f9b01..d0aba998b97 100644
--- a/crates/workspace2/src/dock.rs
+++ b/crates/workspace2/src/dock.rs
@@ -495,7 +495,8 @@ impl Render for Dock {
})
.on_click(cx.listener(|v, e: &ClickEvent, cx| {
if e.down.button == MouseButton::Left && e.down.click_count == 2 {
- v.resize_active_panel(None, cx)
+ v.resize_active_panel(None, cx);
+ cx.stop_propagation();
}
}))
.z_index(1);