Created
February 7, 2018 12:49
-
-
Save remixer-dec/caf2106db1f330cae3427d51595b81a1 to your computer and use it in GitHub Desktop.
Switching tabs (panes) in Atom using mousewheel left/right keys
This file contains 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
addEventListener 'mousewheel', (e) -> | |
switch e.deltaX | |
when -100 | |
atom.workspace.getActivePane().activatePreviousItem() | |
when 100 | |
atom.workspace.getActivePane().activateNextItem() | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some reason the value of e.deltaX in Atom has changed from 100 to 150, and from -100 to -150, make sure to adjust it.