|
|
|
|
|
by aptgetrekt
2146 days ago
|
|
Yeah I think the exact same way! The top of the physical wheel spins the opposite direction of the bottom of the wheel which would be "touching" the page/content. Originally I was going to just make a background script to automatically toggle the option when it detects certain USB devices (like my mouse) but I couldn't find a way to apply settings changed via the "defaults write" command without logging out and then back in. In my research I came across discrete-scroll and scroll reverser on GitHub. Discrete-scroll worked in Catalina but had no GUI, and Scroll Reverser didn't work reliably on Catalina. So I combined the ideas from both in as little Swift code as possible so that anyone using my app wouldn't need to worry about allowing the app to "control your computer". |
|
Just intercepting the actual scroll and inverting it is a really elegant solution (that doesn't require a relog) which is great.
This solves one of the two biggest gripes I had about MacOs - with the other being my inablility to "pin" my dock to one of my monitors, overriding the swap functionality. Thanks!