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:
williameveretteggplant 2024-04-08 12:54:47 -06:00 committed by GitHub
parent 892ed4877e
commit 7b8c02182e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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