Permalink
Browse files

Don't consume hit tests outside of the bounds of a TUINSView

  • Loading branch information...
1 parent b363a4e commit 64c8819339215c674dcdd7c000884e26e90d2419 @jspahrsummers jspahrsummers committed Jul 18, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/UIKit/TUINSView.m
View
@@ -663,6 +663,9 @@ - (NSView *)hitTest:(NSPoint)point {
// subviews (which expect it in their superview's coordinate system)
point = [self convertPoint:point fromView:self.superview];
+ if (!CGRectContainsPoint(self.bounds, point))
+ return nil;
+
__block NSView *result = self;
// we need to avoid hitting any NSViews that are clipped by their

0 comments on commit 64c8819

Please sign in to comment.