mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-04 13:20:42 +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
3c07d3287c
commit
ca947fa1ae
1 changed files with 2 additions and 3 deletions
|
@ -201,10 +201,9 @@ static Class imageCellClass;
|
||||||
- (void) concludeDragOperation: (id <NSDraggingInfo>)sender
|
- (void) concludeDragOperation: (id <NSDraggingInfo>)sender
|
||||||
{
|
{
|
||||||
[_cell setHighlighted: NO];
|
[_cell setHighlighted: NO];
|
||||||
// FIX - should update refresh image here
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) mouseDragged: (NSEvent*)theEvent
|
- (void) mouseDown: (NSEvent*)theEvent
|
||||||
{
|
{
|
||||||
if ([self isEditable])
|
if ([self isEditable])
|
||||||
{
|
{
|
||||||
|
@ -230,7 +229,7 @@ static Class imageCellClass;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[super mouseDragged: theEvent];
|
[super mouseDown: theEvent];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (unsigned int) draggingSourceOperationMaskForLocal: (BOOL)isLocal
|
- (unsigned int) draggingSourceOperationMaskForLocal: (BOOL)isLocal
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue