mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
dcc561fa70
commit
9939bf19e0
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue