Skip to content

Commit

Permalink
Tune gestures for iOS 12
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Jun 7, 2018
1 parent 45742ee commit 491de76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Blink/TouchOverlay.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
UIView *res = [super hitTest:point withEvent:event];

if (res == self) {
CGRect rect = self.bounds;
// Top right corner (Control panel on ipads ios 12)
if (point.y <= 20 && point.x >= rect.size.width - 80) {
return self;
}
return nil;
}

Expand Down

0 comments on commit 491de76

Please sign in to comment.