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:
nico 2001-01-27 12:57:06 +00:00
parent b539cec920
commit 332200d4e5

View file

@ -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]