Skip to content

Instantly share code, notes, and snippets.

@hensm
Last active July 18, 2018 03:20
Show Gist options
  • Save hensm/200e6fae6dce4e2b998887d937aebb45 to your computer and use it in GitHub Desktop.
Save hensm/200e6fae6dce4e2b998887d937aebb45 to your computer and use it in GitHub Desktop.
<?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>
.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