タブバーのドラッグ時、マウスカーソルがタブバーより外に動かない限りはドロップ位置を示す表示を行わないようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5091 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-09-04 02:03:07 +00:00
parent 6d507f91c0
commit cff2819743
3 changed files with 2 additions and 3 deletions

View File

@ -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 $&]]>

View File

@ -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;

View File

@ -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)