mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 22:51:02 +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
|
var
|
||||||
MouseButton: EventMouseButton;
|
MouseButton: EventMouseButton;
|
||||||
begin
|
begin
|
||||||
Result := 1;
|
Result := 0;
|
||||||
|
|
||||||
if OSError(
|
if OSError(
|
||||||
GetEventParameter(AEvent, kEventParamMouseButton, typeMouseButton, nil,
|
GetEventParameter(AEvent, kEventParamMouseButton, typeMouseButton, nil,
|
||||||
SizeOf(MouseButton), nil, @MouseButton),
|
SizeOf(MouseButton), nil, @MouseButton),
|
||||||
SName, SGetEvent, 'kEventParamMouseButton') then Exit;
|
SName, SGetEvent, 'kEventParamMouseButton', eventParameterNotFoundErr) then Exit;
|
||||||
|
|
||||||
Result := MouseButton;
|
Result := MouseButton;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user