From 9b8f230c46fed6c31cf70b94d06580281293502d Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 28 Aug 2019 21:51:52 -0700 Subject: [PATCH] Prevent gesture recognizers from eating our touch events. Fixes #375 --- Limelight/Input/StreamView.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Limelight/Input/StreamView.m b/Limelight/Input/StreamView.m index f23a99da..347f9c4a 100644 --- a/Limelight/Input/StreamView.m +++ b/Limelight/Input/StreamView.m @@ -199,6 +199,13 @@ - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event { } +- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer { + // Disable all gesture recognizers to prevent them from eating our touches. + // This can happen on iOS 13 where the 3 finger tap gesture is taken over for + // displaying custom edit controls. + return NO; +} + - (BOOL)textFieldShouldReturn:(UITextField *)textField { // This method is called when the "Return" key is pressed. LiSendKeyboardEvent(0x0d, KEY_ACTION_DOWN, 0);