minor change

This commit is contained in:
True Zhuanjia
2024-08-17 01:18:34 +08:00
parent 53e68258f3
commit 6b25de1361
+3 -1
View File
@@ -93,7 +93,9 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
selector:@selector(keyboardWillHide:)
name:UIKeyboardWillHideNotification
object:nil];
[self.superview addGestureRecognizer:keyboardToggleRecognizer];
if(settings.touchMode.intValue == PURE_NATIVE_TOUCH) [self addGestureRecognizer:keyboardToggleRecognizer]; //keep legacy approach in pure native mode
else [self.superview addGestureRecognizer:keyboardToggleRecognizer]; //add to the superview in other modes
#if TARGET_OS_TV
// tvOS requires RelativeTouchHandler to manage Apple Remote input