Cocoa: fix the callback call for cocoa tabcontrol mouseup event (never happens, but sanity is the best), issue

This commit is contained in:
Dmitry Boyarintsev 2022-05-08 00:48:00 -04:00 committed by Maxim Ganetsky
parent 7ee95e21d0
commit a1b0518709

View File

@ -615,8 +615,8 @@ begin
Exit;
end;
if not Assigned(callback) then callback.MouseUpDownEvent(event);
inherited mouseUp(event);
if not Assigned(callback) or not callback.MouseUpDownEvent(event) then
inherited mouseUp(event);
end;
procedure TCocoaTabControl.rightMouseDown(event: NSEvent);