Suppress all kbProductivity gesture recognizers

This commit is contained in:
Cameron Gutman 2020-12-07 21:10:30 -06:00
parent 015cfecdd6
commit 9e669d13fa

View File

@ -476,8 +476,8 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
if (@available(iOS 13.0, *)) {
// Disable the 3 finger tap gesure that triggers the copy/paste/undo toolbar on iOS 13+
return ![@"kbProductivity.threeFingerPinch" isEqualToString:gestureRecognizer.name];
// Disable the 3 finger tap gestures that trigger the copy/paste/undo toolbar on iOS 13+
return gestureRecognizer.name == nil || ![gestureRecognizer.name hasPrefix:@"kbProductivity."];
}
else {
return YES;