Created
December 19, 2019 09:06
-
-
Save chk1/37df1e9f965479bc8dcdd29ba852466d to your computer and use it in GitHub Desktop.
Firefox 71 mouse wheel scrolling on tab bar, set `toolkit.tabbox.switchByScrolling` to false
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
https://www.reddit.com/r/firefox/comments/afh6th/howto_enable_tab_switching_in_firefox_using_mouse/ | |
http://forums.mozillazine.org/viewtopic.php?p=14851401#p14851401 | |
--> | |
<bindings xmlns="http://www.mozilla.org/xbl"> | |
<binding id="tabs-scroll"> | |
<handlers> | |
<handler event="wheel"><![CDATA[ | |
if (event.metaKey) return; | |
if (event.deltaY < 0) { | |
gBrowser.tabContainer.advanceSelectedTab(-1, true); | |
} | |
else { | |
gBrowser.tabContainer.advanceSelectedTab(1, true); | |
} | |
event.stopPropagation(); | |
event.preventDefault(); | |
]]></handler> | |
</handlers> | |
</binding> | |
</bindings> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
/* | |
https://www.reddit.com/r/firefox/comments/afh6th/howto_enable_tab_switching_in_firefox_using_mouse/ | |
http://forums.mozillazine.org/viewtopic.php?p=14851401#p14851401 | |
*/ | |
toolbarbutton#tabs-newtab-button, | |
.tabbrowser-arrowscrollbox { | |
-moz-binding: url("bindings.xml#tabs-scroll") !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment