mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 19:20:33 +02:00
LCL carbon: fixed error during mouse wheel
git-svn-id: trunk@13832 -
This commit is contained in:
parent
7e4fdbb9ab
commit
2384804e4d
@ -88,12 +88,12 @@ const
|
||||
var
|
||||
MouseButton: EventMouseButton;
|
||||
begin
|
||||
Result := 1;
|
||||
Result := 0;
|
||||
|
||||
if OSError(
|
||||
GetEventParameter(AEvent, kEventParamMouseButton, typeMouseButton, nil,
|
||||
SizeOf(MouseButton), nil, @MouseButton),
|
||||
SName, SGetEvent, 'kEventParamMouseButton') then Exit;
|
||||
SName, SGetEvent, 'kEventParamMouseButton', eventParameterNotFoundErr) then Exit;
|
||||
|
||||
Result := MouseButton;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user