mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 04:31:00 +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
53747396be
commit
4933e54ded
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>
|
2004-03-14 19:29 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
* Source/NSTableView.m (-mouseDown:): Send the action for simple
|
* Source/NSTableView.m (-mouseDown:): Send the action for simple
|
||||||
|
|
|
@ -2612,8 +2612,13 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
|
||||||
unsigned count;
|
unsigned count;
|
||||||
NSView *v = nil, *w;
|
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;
|
return nil;
|
||||||
|
|
||||||
p = [self convertPoint: aPoint fromView: _super_view];
|
p = [self convertPoint: aPoint fromView: _super_view];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue