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