[common] transition for tab's moving
This commit is contained in:
parent
e42c6f2b71
commit
9ce8081d66
|
@ -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;
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
&:not(.dragged) {
|
||||
transition: left .2s;
|
||||
}
|
||||
|
||||
> a {
|
||||
display: inline;
|
||||
background-color: #7a7a7a;
|
||||
|
|
Loading…
Reference in a new issue