From 015cfecdd677ea2a7d688c9c1621ade37d462e01 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 7 Dec 2020 20:54:24 -0600 Subject: [PATCH] Fix 3 finger taps causing the editing toolbar to appear --- Limelight/Input/StreamView.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Limelight/Input/StreamView.m b/Limelight/Input/StreamView.m index 36cdd89..5144382 100644 --- a/Limelight/Input/StreamView.m +++ b/Limelight/Input/StreamView.m @@ -474,6 +474,16 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5; #endif +- (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]; + } + else { + return YES; + } +} + - (BOOL)textFieldShouldReturn:(UITextField *)textField { // This method is called when the "Return" key is pressed. LiSendKeyboardEvent(0x0d, KEY_ACTION_DOWN, 0);