mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 815961 - After dragging & dropping a tab the tabstrip scrolls to center the tab. r=felipe
This commit is contained in:
parent
afa96c01e6
commit
7faec77d5e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user