mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
(-hitTest:): Don't require that the point is inside our super view if we don't have a super view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18845 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c3ec6bb834
commit
c2adaaaa9d
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-03-14 19:42 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSView.m (-hitTest:): Don't require that the point is
|
||||
inside our super view if we don't have a super view.
|
||||
|
||||
2004-03-14 19:29 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSTableView.m (-mouseDown:): Send the action for simple
|
||||
|
|
|
@ -2612,8 +2612,13 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
|
|||
unsigned count;
|
||||
NSView *v = nil, *w;
|
||||
|
||||
/* If not within our frame then it can't be a hit */
|
||||
if (![_super_view mouse: aPoint inRect: _frame])
|
||||
/*
|
||||
If not within our frame then it can't be a hit.
|
||||
|
||||
As a special case, always assume that it's a hit if our _super_view is nil,
|
||||
ie. if we're the top-level view in a window.
|
||||
*/
|
||||
if (_super_view && ![_super_view mouse: aPoint inRect: _frame])
|
||||
return nil;
|
||||
|
||||
p = [self convertPoint: aPoint fromView: _super_view];
|
||||
|
|
Loading…
Reference in a new issue