Fixed problem on mouseDown:

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12611 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-02-20 23:13:15 +00:00
parent dcc561fa70
commit 9939bf19e0

View file

@ -657,18 +657,18 @@
return nil;
}
- (NSView*) hitTest: (NSPoint)aPoint
- (void) mouseDown: (NSEvent *)theEvent
{
NSTabViewItem *anItem = [self tabViewItemAtPoint: aPoint];
if (anItem && ![anItem isEqual: _selected])
NSPoint location = [theEvent locationInWindow];
NSTabViewItem *anItem = [self tabViewItemAtPoint: location];
if (anItem != nil && ![anItem isEqual: _selected])
{
[self selectTabViewItem: anItem];
}
return [super hitTest: aPoint];
}
- (NSControlSize)controlSize
{
// FIXME