とりあえずタブのドロップは補足できるように
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6430 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
dc66e92627
commit
0196ed2c14
@ -648,15 +648,19 @@ catch(e) {
|
||||
onTabDNDObserverDragStart : function TSTService_onTabDNDObserverDragStart(aEvent)
|
||||
{
|
||||
var tabbar = aEvent.currentTarget;
|
||||
if (tabbar.treeStyleTab.tabbarDNDObserver.canDragTabbar(aEvent))
|
||||
if (tabbar.treeStyleTab.tabbarDNDObserver.canDragTabbar(aEvent)) {
|
||||
tabbar.treeStyleTab.onTabbarDragStart(aEvent, tabbar.tabbrowser);
|
||||
aEvent.preventDefault();
|
||||
}
|
||||
},
|
||||
|
||||
onTabDNDObserverDragOver : function TSTService_onTabDNDObserverDragOver(aEvent)
|
||||
{
|
||||
var tabbar = aEvent.currentTarget;
|
||||
if (tabbar.treeStyleTab.processTabDragOverEvent(aEvent, tabbar.tabbrowser))
|
||||
if (tabbar.treeStyleTab.processTabDragOverEvent(aEvent, tabbar.tabbrowser)) {
|
||||
aEvent.stopPropagation();
|
||||
aEvent.preventDefault();
|
||||
}
|
||||
},
|
||||
|
||||
onTabDNDObserverDragLeave : function TSTService_onTabDNDObserverDragLeave(aEvent)
|
||||
@ -686,6 +690,8 @@ catch(e) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (!draggedTab)
|
||||
return;
|
||||
|
||||
if (sv.performDrop(dropActionInfo, draggedTab)) {
|
||||
aEvent.stopPropagation();
|
||||
|
Loading…
Reference in New Issue
Block a user