Browse Source

Fix overlays touch interception on new iPads (#5908)

Yogev Ben David 5 years ago
parent
commit
433f48b59d
No account linked to committer's email address
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      lib/ios/RNNOverlayWindow.m

+ 7
- 7
lib/ios/RNNOverlayWindow.m View File

@@ -3,13 +3,13 @@
3 3
 @implementation RNNOverlayWindow
4 4
 
5 5
 - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
6
-	UIView *hitTestResult = [super hitTest:point withEvent:event];
7
-	
8
-	if ([hitTestResult isKindOfClass:[UIWindow class]]) {
9
-		return nil;
10
-	}
11
-	
12
-	return hitTestResult;
6
+    UIView *hitTestResult = [super hitTest:point withEvent:event];
7
+    
8
+    if ([hitTestResult isKindOfClass:[UIWindow class]] || [hitTestResult isMemberOfClass:UIView.class]) {
9
+        return nil;
10
+    }
11
+    
12
+    return hitTestResult;
13 13
 }
14 14
 
15 15
 @end