Trunkでタブバーをドラッグできなくなっていた
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6724 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
638ed48fec
commit
0f44906526
@ -2886,11 +2886,22 @@ TreeStyleTabBrowser.prototype = {
|
||||
|
||||
onMouseDown : function TSTBrowser_onMouseDown(aEvent)
|
||||
{
|
||||
if (aEvent.button != 0 ||
|
||||
!this.isEventFiredOnTwisty(aEvent))
|
||||
return;
|
||||
|
||||
this.getTabFromEvent(aEvent).__treestyletab__preventSelect = true;
|
||||
if (
|
||||
aEvent.button == 0 &&
|
||||
this.isEventFiredOnTwisty(aEvent)
|
||||
) {
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user