mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 20:19:16 +02:00
qt: send wheel events in screen coordinates
git-svn-id: trunk@15381 -
This commit is contained in:
parent
7872f8a8db
commit
945a0487b2
@ -2131,7 +2131,7 @@ var
|
|||||||
begin
|
begin
|
||||||
FillChar(Msg, SizeOf(Msg), #0);
|
FillChar(Msg, SizeOf(Msg), #0);
|
||||||
|
|
||||||
MousePos := QWheelEvent_pos(QWheelEventH(Event))^;
|
MousePos := QWheelEvent_globalPos(QWheelEventH(Event))^;
|
||||||
OffsetMousePos(@MousePos);
|
OffsetMousePos(@MousePos);
|
||||||
|
|
||||||
LastMouse.Widget := Sender;
|
LastMouse.Widget := Sender;
|
||||||
|
Loading…
Reference in New Issue
Block a user