Skip to content

Commit

Permalink
Fix overlays touch interception on new iPads (#6042)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd authored Mar 15, 2020
1 parent 31c2808 commit 2ed434c
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 2ed434c

Please sign in to comment.