Update visual effects for tab dragging animation correctly, for trees expanded while dragging
This commit is contained in:
parent
b2a90224d6
commit
a314e75bdb
@ -757,7 +757,13 @@ catch(e) {
|
|||||||
{
|
{
|
||||||
if (!aTab || !aTab._dragData) return;
|
if (!aTab || !aTab._dragData) return;
|
||||||
var sv = this.treeStyleTab;
|
var sv = this.treeStyleTab;
|
||||||
aTab._dragData[sv.offsetProp] += sv.getYOffsetOfTab(aTab);
|
var data = aTab._dragData;
|
||||||
|
var offsetX = sv.getXOffsetOfTab(aTab);
|
||||||
|
var offsetY = sv.getYOffsetOfTab(aTab);
|
||||||
|
if ('offsetX' in data) data.offsetX += offsetX;
|
||||||
|
if ('screenX' in data) data.screenX += offsetX;
|
||||||
|
if ('offsetY' in data) data.offsetY += offsetY;
|
||||||
|
if ('screenY' in data) data.screenY += offsetY;
|
||||||
},
|
},
|
||||||
|
|
||||||
onDragLeave : function TabbarDND_onDragLeave(aEvent)
|
onDragLeave : function TabbarDND_onDragLeave(aEvent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user