Trunkでタブバーをドラッグできなくなっていた

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6724 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-06-25 17:43:30 +00:00
parent 638ed48fec
commit 0f44906526

View File

@ -2886,11 +2886,22 @@ TreeStyleTabBrowser.prototype = {
onMouseDown : function TSTBrowser_onMouseDown(aEvent) onMouseDown : function TSTBrowser_onMouseDown(aEvent)
{ {
if (aEvent.button != 0 || if (
!this.isEventFiredOnTwisty(aEvent)) aEvent.button == 0 &&
return; this.isEventFiredOnTwisty(aEvent)
) {
this.getTabFromEvent(aEvent).__treestyletab__preventSelect = true; this.getTabFromEvent(aEvent).__treestyletab__preventSelect = true;
}
else if (
'TabsOnTop' in window &&
(
this.currentTabbarPosition != 'top' ||
!TabsOnTop.enabled
) &&
this.tabbarDNDObserver.canDragTabbar(aEvent)
) {
aEvent.stopPropagation();
}
}, },
onMouseUp : function TSTBrowser_onMouseUp(aEvent) onMouseUp : function TSTBrowser_onMouseUp(aEvent)