Merge pull request #2237 from zed-industries/revert-2232-tab-bar-background-focus-drag

Revert "Avoid tab bar background activating an item at the end of a tab drag"
This commit is contained in:
Nate Butler 2023-03-03 09:49:55 -08:00 committed by GitHub
commit 6d068e926b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1438,7 +1438,7 @@ impl View for Pane {
.with_style(theme.workspace.tab_bar.container)
.boxed()
})
.on_down(MouseButton::Left, move |_, cx| {
.on_click(MouseButton::Left, move |_, cx| {
cx.dispatch_action(ActivateItem(active_item_index));
})
.boxed(),