mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Use [mouseDown:] instead of [mouseDragged:] to start dragging as
the later only works when the view is not first responder. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15271 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
709f0a2379
commit
8b3f44c4cc
1 changed files with 2 additions and 3 deletions
|
@ -201,10 +201,9 @@ static Class imageCellClass;
|
|||
- (void) concludeDragOperation: (id <NSDraggingInfo>)sender
|
||||
{
|
||||
[_cell setHighlighted: NO];
|
||||
// FIX - should update refresh image here
|
||||
}
|
||||
|
||||
- (void) mouseDragged: (NSEvent*)theEvent
|
||||
- (void) mouseDown: (NSEvent*)theEvent
|
||||
{
|
||||
if ([self isEditable])
|
||||
{
|
||||
|
@ -230,7 +229,7 @@ static Class imageCellClass;
|
|||
}
|
||||
}
|
||||
}
|
||||
[super mouseDragged: theEvent];
|
||||
[super mouseDown: theEvent];
|
||||
}
|
||||
|
||||
- (unsigned int) draggingSourceOperationMaskForLocal: (BOOL)isLocal
|
||||
|
|
Loading…
Reference in a new issue