Skip to content

Instantly share code, notes, and snippets.

@chk1
Created December 19, 2019 09:06
Show Gist options
  • Save chk1/37df1e9f965479bc8dcdd29ba852466d to your computer and use it in GitHub Desktop.
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
<?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>
@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