[Pkg-mozext-commits] [tabmixplus] 73/107: When a browser window has pinned tabs open, dragging a tab from another window to the right of the last pinned tab pins it automatically. changeset 776d43f5b832
David Prévot
taffit at moszumanska.debian.org
Tue Dec 29 19:02:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 83dd64c2ca6b7cae14d95b0a49c36c4437bb72db
Author: onemen <tabmix.onemen at gmail.com>
Date: Thu Nov 12 17:44:16 2015 +0200
When a browser window has pinned tabs open, dragging a tab from another window to the right of the last pinned tab pins it automatically. changeset 776d43f5b832
---
chrome/content/minit/minit.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index 9bb8bbe..da23da8 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -398,9 +398,11 @@ var TMP_tabDNDObserver = {
void newBrowser.docShell;
let numPinned = gBrowser._numPinnedTabs;
+ newIndex += left_right;
if (newIndex < numPinned || draggedTab.pinned && newIndex == numPinned)
gBrowser.pinTab(newTab);
- gBrowser.moveTabTo(newTab, newIndex + left_right);
+
+ gBrowser.moveTabTo(newTab, newIndex);
gBrowser.selectedTab = newTab;
gBrowser.swapBrowsersAndCloseOther(newTab, draggedTab);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list