mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
Bug 471499 - Actually address beltzner's comments.
This commit is contained in:
parent
812dd0b3be
commit
faa97a4e4b
@ -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;
|
||||
|
@ -1921,6 +1921,8 @@
|
||||
dt.setDragImage(canvas, 0, 0);
|
||||
aEvent.stopPropagation();
|
||||
}
|
||||
|
||||
this._dragLeftWindow = false;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
Loading…
Reference in New Issue
Block a user