-
-
Save Mel34/76bc814040a54f79ebc61ca8d8f46a07 to your computer and use it in GitHub Desktop.
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" encoding="UTF-8"?> | |
<!DOCTYPE bindings> | |
<bindings xmlns="http://www.mozilla.org/xbl"> | |
<binding id="tabs-scroll" extends="chrome://global/content/bindings/scrollbox.xml#scrollbox"> | |
<handlers> | |
<handler event="wheel"><![CDATA[ | |
// Preserve original behaviour if meta (Windows) key is held | |
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
.tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox { | |
/* Place bindings.xml in the same folder as userChrome.css */ | |
-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
changed ignore key to meta
original skipped multiple tabs, this code advances tabs by 1