Skip to content

Instantly share code, notes, and snippets.

@remixer-dec
Created February 7, 2018 12:49
Show Gist options
  • Save remixer-dec/caf2106db1f330cae3427d51595b81a1 to your computer and use it in GitHub Desktop.
Save remixer-dec/caf2106db1f330cae3427d51595b81a1 to your computer and use it in GitHub Desktop.
Switching tabs (panes) in Atom using mousewheel left/right keys
addEventListener 'mousewheel', (e) ->
switch e.deltaX
when -100
atom.workspace.getActivePane().activatePreviousItem()
when 100
atom.workspace.getActivePane().activateNextItem()
return
@remixer-dec
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment