mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 20:59:12 +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);
|
procedure TCocoaButton.mouseDown(event: NSEvent);
|
||||||
begin
|
begin
|
||||||
if not callback.MouseUpDownEvent(event) then
|
callback.MouseUpDownEvent(event);
|
||||||
inherited mouseDown(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;
|
end;
|
||||||
|
|
||||||
procedure TCocoaButton.mouseDragged(event: NSEvent);
|
procedure TCocoaButton.mouseDragged(event: NSEvent);
|
||||||
|
Loading…
Reference in New Issue
Block a user