Skip to content

Commit de1d171

Browse files
committed
fix(panel): don't maximize bottom panel on double-click of tabs
Double-click on a tab was accidentally maximizing the panel. Only double-click on the empty tab bar area should toggle maximize.
1 parent 054c8d5 commit de1d171

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/view/PanelView.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,9 +842,10 @@ define(function (require, exports, module) {
842842
_toggleMaximize();
843843
});
844844

845-
// Double-click on tab bar toggles maximize (exclude action buttons and add button)
845+
// Double-click on empty tab bar area toggles maximize.
846+
// Exclude tabs themselves, action buttons, and the add button.
846847
_$tabBar.on("dblclick", function (e) {
847-
if ($(e.target).closest(".bottom-panel-tab-close-btn, .bottom-panel-hide-btn, .bottom-panel-maximize-btn, .bottom-panel-add-btn").length) {
848+
if ($(e.target).closest(".bottom-panel-tab, .bottom-panel-tab-close-btn, .bottom-panel-hide-btn, .bottom-panel-maximize-btn, .bottom-panel-add-btn").length) {
848849
return;
849850
}
850851
_toggleMaximize();

0 commit comments

Comments
 (0)