diff --git a/apps/common/main/lib/component/TabBar.js b/apps/common/main/lib/component/TabBar.js index c52f7f446..e8f7bbcd1 100644 --- a/apps/common/main/lib/component/TabBar.js +++ b/apps/common/main/lib/component/TabBar.js @@ -206,6 +206,7 @@ define([ function dragComplete() { if (!_.isUndefined(me.drag)) { + me.drag.tab.removeClass('dragged'); me.drag.tab.$el.css('z-index', ''); me.bar.dragging = false; var tab = null; @@ -250,6 +251,8 @@ define([ } if (!_.isUndefined(bar) && !_.isUndefined(tab) && bar.tabs.length > 1) { + tab.addClass('dragged'); + var index = bar.tabs.indexOf(tab), _clientX = e.clientX*Common.Utils.zoom(); me.bar = bar; diff --git a/apps/common/main/resources/less/tabbar.less b/apps/common/main/resources/less/tabbar.less index 5b1f1f727..66af233d2 100644 --- a/apps/common/main/resources/less/tabbar.less +++ b/apps/common/main/resources/less/tabbar.less @@ -15,6 +15,10 @@ } } + &:not(.dragged) { + transition: left .2s; + } + > a { display: inline; background-color: #7a7a7a;