sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
809 stars 39 forks source link

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

Open ghost opened 7 years ago

ghost commented 7 years ago

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

duraki commented 6 years ago

Any update here?

welien commented 6 years ago

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

landoncope commented 6 years ago

Ping