mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:00:46 +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
b539cec920
commit
332200d4e5
1 changed files with 6 additions and 0 deletions
|
@ -151,6 +151,12 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
|
||||||
[_the_color drawSwatchInRect: insideRect];
|
[_the_color drawSwatchInRect: insideRect];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL) acceptsFirstMouse: (NSEvent *)event
|
||||||
|
{
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
- (void) mouseDown: (NSEvent *)theEvent
|
- (void) mouseDown: (NSEvent *)theEvent
|
||||||
{
|
{
|
||||||
NSPoint point = [self convertPoint: [theEvent locationInWindow]
|
NSPoint point = [self convertPoint: [theEvent locationInWindow]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue