sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

Trackpad scrolling with `button: scroll_up/down` on OS X

Open ghost opened this issue 8 years ago • 4 comments

Summary

Trackpad scrolling, by setting button: scroll_up/down in a .sublime-mousemap file, doesn't seem to work on OS X.

Reference: TerminalView discussion.

Expected behavior

Duh.

Actual behavior

Nothing happens, no errors on the console.

Steps to reproduce

Different modifiers don't work but I found it's somehow an OS X limitation. I unzipped ST's Default.sublime-package and found the following:

Default (Linux).sublime-mousemap
...
// Change font size with ctrl+scroll wheel
{ "button": "scroll_down", "modifiers": ["ctrl"], "command": "decrease_font_size" },
{ "button": "scroll_up", "modifiers": ["ctrl"], "command": "increase_font_size" },
...
Default (Windows).sublime-mousemap
...
// Switch files by holding down button 2, and using the scroll wheel
{ "button": "scroll_down", "modifiers": ["button2"], "command": "next_view" },
{ "button": "scroll_up", "modifiers": ["button2"], "command": "prev_view" },

// Change font size with ctrl+scroll wheel
{ "button": "scroll_down", "modifiers": ["ctrl"], "command": "decrease_font_size" },
{ "button": "scroll_up", "modifiers": ["ctrl"], "command": "increase_font_size" },
...

For some reason, Default (OSX).sublime-mousemap doesn't contain the scroll_up or scroll_down keys.

Also tried

[
    { "button": "scroll_up", "modifiers": ["alt"], "command": "increase_font_size" },
    { "button": "scroll_down", "modifiers": ["alt"], "command": "decrease_font_size" }
]

and confirmed that it doesn't work for changing font size either, so my guess is that this is an issue with ST and not TerminalView.

UPDATE: Some guys confirm it doesn't work with a trackpad on the ST Forum.

Environment

  • Operating system and version:
    • Mac OS 10.11
  • Sublime Text:
    • Build 3 dev 3141
    • 64 bit

ghost avatar Jul 25 '17 13:07 ghost

Any update here?

duraki avatar May 16 '18 07:05 duraki

Ping https://github.com/Wramberg/TerminalView/issues/92#issuecomment-404846926 Any chance this could get fixed anytime soon?

welien avatar Jul 13 '18 14:07 welien

Ping

landoncope avatar Aug 02 '18 18:08 landoncope

Still an issue. I see nothing when I enable command logging in the console. Would be nice to have this. I use this all the time on my windows machine at work.

bmcquist avatar Oct 16 '25 11:10 bmcquist