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:
Fred Kiefer 2002-12-10 00:19:11 +00:00
parent 709f0a2379
commit 8b3f44c4cc

View file

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