mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Implemented acceptsFirstMouse: so that you can drag with the first click
on the window git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8835 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1c98e6fb81
commit
ca582f4d9f
1 changed files with 6 additions and 0 deletions
|
@ -151,6 +151,12 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
|
|||
[_the_color drawSwatchInRect: insideRect];
|
||||
}
|
||||
|
||||
- (BOOL) acceptsFirstMouse: (NSEvent *)event
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
- (void) mouseDown: (NSEvent *)theEvent
|
||||
{
|
||||
NSPoint point = [self convertPoint: [theEvent locationInWindow]
|
||||
|
|
Loading…
Reference in a new issue