cocoa: Fixes TButton clicking

git-svn-id: trunk@52517 -
This commit is contained in:
sekelsenmat 2016-06-18 07:47:05 +00:00
parent 081d6d92bc
commit 801f392c8d

View File

@ -1768,8 +1768,10 @@ end;
procedure TCocoaButton.mouseDown(event: NSEvent);
begin
if not callback.MouseUpDownEvent(event) then
inherited mouseDown(event);
callback.MouseUpDownEvent(event);
// We need to call the inherited regardless of the result of the call to
// MouseUpDownEvent otherwise mouse clicks don't work, see bug 30131
inherited mouseDown(event);
end;
procedure TCocoaButton.mouseDragged(event: NSEvent);