Bug 471499 - Actually address beltzner's comments.

This commit is contained in:
Asaf Romano 2009-02-04 23:33:01 +02:00
parent 812dd0b3be
commit faa97a4e4b
2 changed files with 5 additions and 2 deletions

View File

@ -4919,9 +4919,10 @@ var contentAreaDNDObserver = {
if (dragData instanceof XULElement && dragData.localName == "tab" &&
dragData.ownerDocument.defaultView == window) {
// Detach only if the mouse pointer was released a little
// bit down in the content area (to be precise, by tab-height)
// bit down in the content area (to be precise, by half the height
// of a tab)
if (aEvent.screenY > gBrowser.mPanelContainer.boxObject.screenY +
dragData.boxObject.height) {
dragData.boxObject.height / 2) {
gBrowser.replaceTabWithWindow(dragData);
aEvent.dataTransfer.dropEffect = "move";
return;

View File

@ -1921,6 +1921,8 @@
dt.setDragImage(canvas, 0, 0);
aEvent.stopPropagation();
}
this._dragLeftWindow = false;
]]>
</body>
</method>