mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-22 18:30:43 +00:00
-hitTest was always returning self, which did not allow any other views to receive a mouse down
This commit is contained in:
@@ -470,7 +470,11 @@ var RECENT_SEARCH_PREFIX = @" ";
|
||||
|
||||
- (CPView)hitTest:(CGPoint)aPoint
|
||||
{
|
||||
return self;
|
||||
// Make sure a hit anywhere within the search field returns the search field itself
|
||||
if (_CGRectContainsPoint([self frame], aPoint))
|
||||
return self;
|
||||
else
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (BOOL)resignFirstResponder
|
||||
|
||||
Reference in New Issue
Block a user