Przeglądaj źródła

Fix overlays touch interception on new iPads (#6042)

Yogev Ben David 4 lat temu
rodzic
commit
2ed434c952
No account linked to committer's email address
1 zmienionych plików z 7 dodań i 7 usunięć
  1. 7
    7
      lib/ios/RNNOverlayWindow.m

+ 7
- 7
lib/ios/RNNOverlayWindow.m Wyświetl plik

@@ -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