Skip to content

Instantly share code, notes, and snippets.

@SoCuul
Last active September 17, 2025 04:51
Show Gist options
  • Select an option

  • Save SoCuul/d96ae31622139c671b004543153dbe46 to your computer and use it in GitHub Desktop.

Select an option

Save SoCuul/d96ae31622139c671b004543153dbe46 to your computer and use it in GitHub Desktop.
Fix pinch gesture on macOS
clang -fobjc-arc -F/System/Library/PrivateFrameworks -framework PreferencePanesSupport fixPinch.m
#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];
}
}
@SoCuul
Copy link
Author

SoCuul commented Sep 17, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment