diff --git a/apps/common/main/lib/component/TabBar.js b/apps/common/main/lib/component/TabBar.js index 9b77da678..f85ea421c 100644 --- a/apps/common/main/lib/component/TabBar.js +++ b/apps/common/main/lib/component/TabBar.js @@ -233,9 +233,10 @@ define([ mousedown: $.proxy(function (e) { if (this.bar.options.draggable && !_.isUndefined(dragHelper) && (3 !== e.which)) { if (!tab.isLockTheDrag) { - if (!e.ctrlKey && !e.metaKey && !e.shiftKey) + if (!e.ctrlKey && !e.metaKey && !e.shiftKey) { tab.changeState(); - dragHelper.setHookTabs(e, this.bar, this.bar.selectTabs); + dragHelper.setHookTabs(e, this.bar, this.bar.selectTabs); + } } } }, this)