Fix broken behavior about tabs dropped on indented area (fix for https://github.com/piroor/treestyletab/issues/175 )

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-11-05 19:50:30 +09:00
parent a3d1651ca7
commit bcca67868e

View File

@ -160,7 +160,7 @@ try{
tab.parentNode != b.mTabContainer)
return true;
tab = sv.getTabFromEvent(aEvent);
tab = sv.getTabFromEvent(aEvent) || sv.getTabFromTabbarEvent(aEvent);
if (sv.isCollapsed(tab))
return false;
@ -246,7 +246,7 @@ catch(e) {
var b = this.browser;
var d = this.document;
var tab = aEvent.target;
var tab = sv.getTabFromEvent(aEvent) || sv.getTabFromTabbarEvent(aEvent) || aEvent.target;
var tabs = sv.getTabsArray(b);
var firstTab = sv.getFirstNormalTab(b) || tabs[0];
var lastTabIndex = tabs.length - 1;