Coder Social home page Coder Social logo

kolinscript / scroll-reverser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pilotmoon/scroll-reverser

0.0 0.0 0.0 7.33 MB

Per-device scrolling prefs on macOS.

Home Page: https://pilotmoon.com/scrollreverser/

License: Apache License 2.0

Shell 0.46% C 1.51% Objective-C 97.95% CSS 0.08%

scroll-reverser's Introduction

Scroll Reverser

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

Web home page: https://pilotmoon.com/scrollreverser/ (Please note the home page contains additional content about the app, FAQ, changelog etc.)

Requirements

The latest build of Scroll Reverser requires macOS 10.12.6 and above and is a universal binary for both Intel and Apple Silicon (M1) Macs. Older versions are available for older OS versions, down to OS X 10.4. See the web home page for the downloads or the respective labelled branches for the code.

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 contributions in your language are welcome. Please submit transmations using the CrowdIn platform. ** When improving an existing translation, please add a comment and mark it as "Issue" so that it flags it up to me to approve. Otherwise I might not see it.** If you would like to open a new language, just send me an email.

License

Published under Apache License 2.0.

Please note, the name "Scroll Reverser" and the application icon are trademarks and may not be used by derivatve works (except as required to describe the origin of the work).

Building

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

You will get errors in the build script phase. That is because you need to replace out the part of the script which specifies my code signing key with the name of your own key. (If you don't have a code signing key, you'll need to Google that...)

Viewing debug log

To display the debug window, Option(โŒฅ)-click the Scroll Reverser menu bar icon. (Scroll Reverser does not output debug info with NSLog. This is because doing so slows down the event lap. Instead, it has some custom debug code which is more efficient to write to.)

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.

Alternatives

scroll-reverser's People

Contributors

pilotmoon avatar vinboisoft avatar lujjjh avatar justinchuby avatar liam0205 avatar 16patsle avatar ozturkalperen avatar berezovskyi avatar dankimio avatar dzikoysk avatar erikhuizinga avatar fdelache avatar jacalz avatar j796160836 avatar ponychicken avatar thanasis00 avatar freezy-sk avatar jesusjimsa avatar whitipet avatar alex4386 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.