You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Fixed incorrect coordinates using the wheel button in OSR demos for Windows (VCL).
This commit is contained in:
@@ -952,7 +952,11 @@ begin
|
||||
TempEvent.y := MousePos.y;
|
||||
TempEvent.modifiers := getModifiers(Shift);
|
||||
DeviceToLogical(TempEvent, GlobalCEFApp.DeviceScaleFactor);
|
||||
chrmosr.SendMouseWheelEvent(@TempEvent, 0, WheelDelta);
|
||||
|
||||
if CefIsKeyDown(VK_SHIFT) then
|
||||
chrmosr.SendMouseWheelEvent(@TempEvent, WheelDelta, 0)
|
||||
else
|
||||
chrmosr.SendMouseWheelEvent(@TempEvent, 0, WheelDelta);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user