mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 00:18:15 +02:00
cocoa: correct horizontal scrollWheel. macOS and LCL are using reversed delta values
git-svn-id: trunk@61770 -
This commit is contained in:
parent
86a2871214
commit
ea3cda9791
@ -1161,7 +1161,10 @@ begin
|
||||
if event.deltaX <> 0 then
|
||||
begin
|
||||
Msg.Msg := LM_MOUSEHWHEEL;
|
||||
Msg.WheelDelta := round(event.deltaX * 120);
|
||||
// see "deltaX" documentation.
|
||||
// on macOS: -1 = right, +1 = left
|
||||
// on LCL: -1 = left, +1 = right
|
||||
Msg.WheelDelta := round(-event.deltaX * 120);
|
||||
end
|
||||
else
|
||||
// Filter out empty events - See bug 28491
|
||||
|
Loading…
Reference in New Issue
Block a user