とりあえずタブのドロップは補足できるように

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6430 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-03-24 18:03:48 +00:00
parent dc66e92627
commit 0196ed2c14

View File

@ -648,15 +648,19 @@ catch(e) {
onTabDNDObserverDragStart : function TSTService_onTabDNDObserverDragStart(aEvent) onTabDNDObserverDragStart : function TSTService_onTabDNDObserverDragStart(aEvent)
{ {
var tabbar = aEvent.currentTarget; var tabbar = aEvent.currentTarget;
if (tabbar.treeStyleTab.tabbarDNDObserver.canDragTabbar(aEvent)) if (tabbar.treeStyleTab.tabbarDNDObserver.canDragTabbar(aEvent)) {
tabbar.treeStyleTab.onTabbarDragStart(aEvent, tabbar.tabbrowser); tabbar.treeStyleTab.onTabbarDragStart(aEvent, tabbar.tabbrowser);
aEvent.preventDefault();
}
}, },
onTabDNDObserverDragOver : function TSTService_onTabDNDObserverDragOver(aEvent) onTabDNDObserverDragOver : function TSTService_onTabDNDObserverDragOver(aEvent)
{ {
var tabbar = aEvent.currentTarget; var tabbar = aEvent.currentTarget;
if (tabbar.treeStyleTab.processTabDragOverEvent(aEvent, tabbar.tabbrowser)) if (tabbar.treeStyleTab.processTabDragOverEvent(aEvent, tabbar.tabbrowser)) {
aEvent.stopPropagation(); aEvent.stopPropagation();
aEvent.preventDefault();
}
}, },
onTabDNDObserverDragLeave : function TSTService_onTabDNDObserverDragLeave(aEvent) onTabDNDObserverDragLeave : function TSTService_onTabDNDObserverDragLeave(aEvent)
@ -686,6 +690,8 @@ catch(e) {
return; return;
} }
} }
if (!draggedTab)
return;
if (sv.performDrop(dropActionInfo, draggedTab)) { if (sv.performDrop(dropActionInfo, draggedTab)) {
aEvent.stopPropagation(); aEvent.stopPropagation();