タブバーをドラッグ&ドロップで移動できる局面と、タブバーが上以外の場所に置かれている時は、常にタイトルバー的な挙動を無効化するようにした( http://piro.sakura.ne.jp/cgi-bin/bbs.cgi?2769 )
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7204 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
bf530050db
commit
2cf5432a88
@ -3031,16 +3031,11 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
{
|
{
|
||||||
// block default behaviors of the tab bar (dragging => window move, etc.)
|
// block default behaviors of the tab bar (dragging => window move, etc.)
|
||||||
if (
|
if (
|
||||||
'TabsOnTop' in window &&
|
this.currentTabbarPosition != 'top' ||
|
||||||
(
|
aEvent.shiftKey ||
|
||||||
this.currentTabbarPosition != 'top' ||
|
|
||||||
!TabsOnTop.enabled ||
|
|
||||||
aEvent.shiftKey
|
|
||||||
) &&
|
|
||||||
this.tabbarDNDObserver.canDragTabbar(aEvent)
|
this.tabbarDNDObserver.canDragTabbar(aEvent)
|
||||||
) {
|
)
|
||||||
aEvent.stopPropagation();
|
aEvent.stopPropagation();
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onMouseDown : function TSTBrowser_onMouseDown(aEvent)
|
onMouseDown : function TSTBrowser_onMouseDown(aEvent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user