[Pkg-mozext-commits] [tabmixplus] 09/32: Update the code that change gBrowser.tabContainer._animateTabMove, fix incompatibility with Multiple Tab Handler extension
David Prévot
taffit at moszumanska.debian.org
Sun Feb 7 19:23:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 66a3aaa5407340350099bf97da9d26bf18e32381
Author: onemen <tabmix.onemen at gmail.com>
Date: Wed Dec 30 16:29:28 2015 +0200
Update the code that change gBrowser.tabContainer._animateTabMove, fix incompatibility with Multiple Tab Handler extension
---
chrome/content/minit/minit.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index fb35f3b..dc8713d 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -48,12 +48,12 @@ var TMP_tabDNDObserver = {
'let tabCenter = tabScreenX + translateX + tabWidth / 2;',
'let tabCenter = tabScreenX + translateX + draggingRight * tabWidth;'
)._replace(
- 'let screenX = boxObject.screenX + getTabShift(tabs[mid], oldIndex);',
- 'let halfWidth = boxObject.width / 2;\n\
- let screenX = boxObject.screenX + draggingRight * halfWidth +\n\
- getTabShift(tabs[mid], oldIndex);'
+ /let screenX = boxObject.*;/,
+ '$&\n ' +
+ 'let halfWidth = boxObject.width / 2;\n ' +
+ 'screenX += draggingRight * halfWidth;'
)._replace(
- 'screenX + boxObject.width < tabCenter',
+ /screenX \+ boxObject.* \< tabCenter/,
'screenX + halfWidth < tabCenter'
)._replace(
'newIndex >= oldIndex',
--
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