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.

Avoid tab bar background activating an item at the end of a tab drag

Juliab343e8056a8a
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs
index 2e5565ea63f..cffdcd67834 100644
--- a/crates/workspace/src/pane.rs
+++ b/crates/workspace/src/pane.rs
@@ -1438,7 +1438,7 @@ impl View for Pane {
.with_style(theme.workspace.tab_bar.container)
.boxed()
})
- .on_click(MouseButton::Left, move |_, cx| {
+ .on_down(MouseButton::Left, move |_, cx| {
cx.dispatch_action(ActivateItem(active_item_index));
})
.boxed(),