タブバーのドラッグ時、マウスカーソルがタブバーより外に動かない限りはドロップ位置を示す表示を行わないようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5091 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
6d507f91c0
commit
cff2819743
@ -1407,7 +1407,6 @@ var TreeStyleTabService = {
|
||||
aEvent.screenX - box.screenX,
|
||||
aEvent.screenY - box.screenY
|
||||
);
|
||||
this.mPanelContainer.setAttribute(sv.kDROP_POSITION, sv.kDROP_POSITION_UNKNOWN);
|
||||
aEvent.stopPropagation();
|
||||
}
|
||||
else $&]]>
|
||||
|
@ -20,7 +20,6 @@ TreeStyleTabBrowserTabbarDNDObserver.prototype = {
|
||||
sv.kTABBAR_MOVE_FORCE :
|
||||
sv.kTABBAR_MOVE_NORMAL
|
||||
);
|
||||
sv.mTabBrowser.setAttribute(sv.kDROP_POSITION, sv.kDROP_POSITION_UNKNOWN);
|
||||
|
||||
aEvent.stopPropagation();
|
||||
return true;
|
||||
|
@ -9,7 +9,8 @@ TreeStyleTabBrowserTabpanelDNDObserver.prototype = {
|
||||
{
|
||||
if (!this.canDrop(aEvent, aDragSession)) return;
|
||||
var sv = this.mOwner;
|
||||
sv.mTabBrowser.setAttribute(sv.kDROP_POSITION, sv.kDROP_POSITION_UNKNOWN);
|
||||
if (sv.mTabBrowser.hasAttribute(sv.kDROP_POSITION))
|
||||
sv.mTabBrowser.setAttribute(sv.kDROP_POSITION, sv.kDROP_POSITION_UNKNOWN);
|
||||
},
|
||||
|
||||
onDragOver : function(aEvent, aFlavour, aDragSession)
|
||||
|
Loading…
Reference in New Issue
Block a user