Fix broken behavior about tabs dropped on indented area (fix for https://github.com/piroor/treestyletab/issues/175 )
This commit is contained in:
parent
a3d1651ca7
commit
bcca67868e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user