mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Fix NSImageView intercepting mouse events when not editable (#256)
* Update NSImageView.m * Refactor editable condition * Remove empty line, left over from previous changes --------- Co-authored-by: Fred Kiefer <fredkiefer@gmx.de>
This commit is contained in:
parent
892ed4877e
commit
7b8c02182e
1 changed files with 9 additions and 1 deletions
|
@ -340,7 +340,15 @@ static Class imageCellClass;
|
|||
}
|
||||
}
|
||||
}
|
||||
[super mouseDown: theEvent];
|
||||
|
||||
if (![self isEditable] && [self nextResponder] != nil)
|
||||
{
|
||||
[[self nextResponder] mouseDown:theEvent];
|
||||
}
|
||||
else
|
||||
{
|
||||
[super mouseDown: theEvent];
|
||||
}
|
||||
}
|
||||
|
||||
- (NSDragOperation) draggingSourceOperationMaskForLocal: (BOOL)isLocal
|
||||
|
|
Loading…
Reference in a new issue