From a314e75bdb72fa12df318619d3a0b8da104e9579 Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Sat, 13 Oct 2012 02:18:16 +0900 Subject: [PATCH] Update visual effects for tab dragging animation correctly, for trees expanded while dragging --- modules/tabbarDNDObserver.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index 47f22972..770eb4e9 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -757,7 +757,13 @@ catch(e) { { if (!aTab || !aTab._dragData) return; 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)