From 196bb1e93c6083ffa22747c3b31a89d82b274f90 Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Tue, 4 Dec 2012 02:04:06 +0900 Subject: [PATCH] Calculate drop position correctly (fix https://github.com/piroor/treestyletab/issues/399#issuecomment-10961365) --- modules/tabbarDNDObserver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index c54d94c3..0544c1bd 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -277,7 +277,7 @@ catch(e) { tabs[draggedTab._dragData.animDropIndex] : // otherwise, we have to find "drop target" tab from screen coordinates. sv.getTabFromCoordinates(aEvent, sameTypeUndraggedTabs) || - sv.getTabFromCoordinates(aEvent); + tabs[draggedTab._dragData.animDropIndex] ; } var isTabMoveFromOtherWindow = aSourceTab && aSourceTab.ownerDocument != d;