Last active
September 17, 2025 04:51
-
-
Save SoCuul/d96ae31622139c671b004543153dbe46 to your computer and use it in GitHub Desktop.
Fix pinch gesture on macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clang -fobjc-arc -F/System/Library/PrivateFrameworks -framework PreferencePanesSupport fixPinch.m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| @interface MTTGestureBackEnd | |
| + (id)sharedInstance; | |
| @property long long twoFingerPinch; // @dynamic tapBehavior; | |
| @end | |
| int main(int argc, char *argv[]) { | |
| @autoreleasepool { | |
| [[MTTGestureBackEnd sharedInstance] setTwoFingerPinch:0]; | |
| usleep(500 * 1000); | |
| [[MTTGestureBackEnd sharedInstance] setTwoFingerPinch:1]; | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit: https://www.reddit.com/r/mac/comments/tz5any/comment/j0j3kjk