From 7faec77d5edc31c98019b5d1623da3db6d76c4bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Thu, 6 Dec 2012 11:42:07 +0100 Subject: [PATCH] Bug 815961 - After dragging & dropping a tab the tabstrip scrolls to center the tab. r=felipe --- browser/base/content/tabbrowser.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 89f924006a9..d21e0268b61 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -3756,6 +3756,8 @@ if (draggedTab.parentNode != this || event.shiftKey) this.selectedItem = newTab; } else if (draggedTab && draggedTab.parentNode == this) { + this._finishAnimateTabMove(); + // actually move the dragged tab if ("animDropIndex" in draggedTab._dragData) { let newIndex = draggedTab._dragData.animDropIndex; @@ -3763,7 +3765,6 @@ newIndex--; this.tabbrowser.moveTabTo(draggedTab, newIndex); } - this._finishAnimateTabMove(); } else if (draggedTab) { // swap the dropped tab with a new one we create and then close // it in the other window (making it seem to have moved between