Skip to content

Commit

Permalink
Fix overlays touch interception on new iPads (#5908)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd authored Feb 6, 2020
1 parent c557372 commit 433f48b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/ios/RNNOverlayWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
@implementation RNNOverlayWindow

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
UIView *hitTestResult = [super hitTest:point withEvent:event];
if ([hitTestResult isKindOfClass:[UIWindow class]]) {
return nil;
}
return hitTestResult;
UIView *hitTestResult = [super hitTest:point withEvent:event];
if ([hitTestResult isKindOfClass:[UIWindow class]] || [hitTestResult isMemberOfClass:UIView.class]) {
return nil;
}
return hitTestResult;
}

@end

0 comments on commit 433f48b

Please sign in to comment.