mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 00:19:32 +02:00
cocoa: Fixes TButton clicking
git-svn-id: trunk@52517 -
This commit is contained in:
parent
081d6d92bc
commit
801f392c8d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user