[Pkg-mozext-commits] [tabmixplus] 34/48: In multi-row mode each mousewheel click should scroll one row

David Prévot taffit at moszumanska.debian.org
Sun Aug 20 03:14:37 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 3ed36c6d86c7089b15a3de0d531da63b7dd7e809
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Aug 14 17:07:17 2017 +0300

    In multi-row mode each mousewheel click should scroll one row
---
 chrome/content/tabmix.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/chrome/content/tabmix.js b/chrome/content/tabmix.js
index 3717494..61465f3 100644
--- a/chrome/content/tabmix.js
+++ b/chrome/content/tabmix.js
@@ -1058,14 +1058,17 @@ var TMP_eventListener = {
         let scrollByPixels = true;
         let instant;
         let scrollAmount = 0;
-        if (Tabmix.isVersion(480) &&
+        if (Tabmix.isVersion(530) && TabmixTabbar.isMultiRow) {
+          delta = delta > 0 ? 1 : -1;
+          scrollAmount = delta * tabStrip.lineScrollAmount;
+        } else if (Tabmix.isVersion(480) &&
             aEvent.deltaMode == aEvent.DOM_DELTA_PIXEL) {
           scrollAmount = delta;
           instant = true;
         } else if (Tabmix.isVersion(490) &&
             aEvent.deltaMode == aEvent.DOM_DELTA_PAGE) {
           scrollAmount = delta * tabStrip.scrollClientSize;
-        } else if (Tabmix.isVersion(570) || Tabmix.isVersion(530) && !TabmixTabbar.isMultiRow) {
+        } else if (Tabmix.isVersion(530)) {
           scrollAmount = delta * tabStrip.lineScrollAmount;
         } else {
           // scroll the tabbar by one tab

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