From b343e8056a8ad19f1ac7424f9160d2e0cc3290d1 Mon Sep 17 00:00:00 2001 From: Julia Date: Thu, 2 Mar 2023 13:06:58 -0800 Subject: [PATCH] Avoid tab bar background activating an item at the end of a tab drag --- crates/workspace/src/pane.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs index 2e5565ea63..cffdcd6783 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(),