Calculate drop position correctly (fix https://github.com/piroor/treestyletab/issues/399#issuecomment-10961365)
This commit is contained in:
parent
5e09e88bb2
commit
196bb1e93c
@ -277,7 +277,7 @@ catch(e) {
|
|||||||
tabs[draggedTab._dragData.animDropIndex] :
|
tabs[draggedTab._dragData.animDropIndex] :
|
||||||
// otherwise, we have to find "drop target" tab from screen coordinates.
|
// otherwise, we have to find "drop target" tab from screen coordinates.
|
||||||
sv.getTabFromCoordinates(aEvent, sameTypeUndraggedTabs) ||
|
sv.getTabFromCoordinates(aEvent, sameTypeUndraggedTabs) ||
|
||||||
sv.getTabFromCoordinates(aEvent);
|
tabs[draggedTab._dragData.animDropIndex] ;
|
||||||
}
|
}
|
||||||
|
|
||||||
var isTabMoveFromOtherWindow = aSourceTab && aSourceTab.ownerDocument != d;
|
var isTabMoveFromOtherWindow = aSourceTab && aSourceTab.ownerDocument != d;
|
||||||
|
Loading…
Reference in New Issue
Block a user