[Pkg-mozext-commits] [tabmixplus] 26/48: Update compatibility with Multiple Tab Handler version 0.8.2017061501

David Prévot taffit at moszumanska.debian.org
Sun Aug 20 03:14:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 2b607e01e08da2b6dad649beea4a163d23837a3c
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Aug 9 11:26:03 2017 +0300

    Update compatibility with Multiple Tab Handler version 0.8.2017061501
---
 chrome/content/minit/minit.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index 1aabd0d..401f7ce 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -92,6 +92,14 @@ var TMP_tabDNDObserver = {
       const observer = function(subject) {
         if (subject == window) {
           Services.obs.removeObserver(observer, topic);
+          // update for multiple-tab-handler version 0.8.2017061501
+          if (!newCode.value.includes("draggingRight = screenX")) {
+            newCode.value = newCode.value.replace(
+              'draggedTab._dragData.animLastScreenX = screenX;',
+              'let draggingRight = screenX > draggedTab._dragData.animLastScreenX;\n          ' +
+              '$&'
+            );
+          }
           newCode.toCode();
         }
       };

-- 
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