[Pkg-mozext-commits] [tabmixplus] 24/147: Don't change selected tab by wheel event over the tab-bar if the device that generated the event wasn't a mouse wheel

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:33 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 8edbd67c8ae3a763c123fb9f500d86ab167f476f
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Oct 31 13:33:29 2016 +0200

    Don't change selected tab by wheel event over the tab-bar if the device that generated the event wasn't a mouse wheel
---
 chrome/content/tabmix.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/chrome/content/tabmix.js b/chrome/content/tabmix.js
index 15a9488..fdbe6a4 100644
--- a/chrome/content/tabmix.js
+++ b/chrome/content/tabmix.js
@@ -1008,8 +1008,10 @@ var TMP_eventListener = {
     }
 
     if (shouldMoveFocus) {
-      direction = direction > 0 ? 1 : -1;
-      tabBar.advanceSelectedTab(direction, true);
+      if (aEvent.mozInputSource == MouseEvent.MOZ_SOURCE_MOUSE) {
+        direction = direction > 0 ? 1 : -1;
+        tabBar.advanceSelectedTab(direction, true);
+      }
       aEvent.stopPropagation();
       aEvent.preventDefault();
     } else if (direction !== 0 && !Tabmix.extensions.treeStyleTab) {

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