Skip to content

yngzij/Scroll-Reverser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scroll Reverser

Reverses the direction of macOS scrolling, with independent settings for trackpads and mice.

Web home page: https://pilotmoon.com/scrollreverser/

Announcement: In a future update, Scroll Reverser will become a paid app. It will remain open source. You can read more about my decision here.

Install and run

Download the latest release, unzip, and place Scroll Reverser.app in your /Applications folder. Double-click to run.

To uninstall, simply quit the app and drag Scroll Reverser.app to trash.

Translations

Translation updates in your language are appreciated either by pull request or using CrowdIn platform.

License

Licensed under Apache License 2.0.

Please note, the name "Scroll Reverser" and the application icons are trademarks and may not be used by derivatve works.

Building

After cloning this repo, you'll need to git submodule update --init to check out the BuildScripts submodule.

Notes on the code

The master branch targets 10.12 and higher.

Older code targeting 10.4+ is in the 'tiger' branch and 10.7+ is in the 'lion' branch.

The real guts of the code is in MouseTap.m. Everything else is just user interface rigging.

Scroll Reverser installs an event tap, which gives access to event stream, including scrolling events and gesture events. The main documentation is Quartz Event Services Reference.

To distinguish between trackpad and mouse, Scroll Reverser essentially looks at the gesture events to determine whether there are 2 or more fingers on the trackpad. If so, it assumes it is the trackpad. If not, mouse. It's a little more complicated than that as you will see, but that is the general idea.

About

Per-device scrolling prefs on macOS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 98.1%
  • Shell 1.6%
  • Other 0.3%