Last active
July 18, 2018 03:20
-
-
Save hensm/200e6fae6dce4e2b998887d937aebb45 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 Ctrl is held | |
if (event.ctrlKey) return; | |
gBrowser.tabContainer.advanceSelectedTab( | |
event.deltaY > 0 ? 1 : -1, true); | |
event.stopPropagation(); | |
]]></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