fix(win32 gui): translate mouse wheel events from screen to window coordinates
This commit is contained in:
parent
91eba39019
commit
4842002136
1 changed files with 2 additions and 1 deletions
|
@ -699,7 +699,8 @@ fn sendMouseWheel(
|
|||
) void {
|
||||
const frame = tracy.initZone(@src(), .{ .name = "gui sendMouseWheel" });
|
||||
defer frame.deinit();
|
||||
const point = win32ext.pointFromLparam(lparam);
|
||||
var point = win32ext.pointFromLparam(lparam);
|
||||
_ = win32.ScreenToClient(hwnd, &point);
|
||||
const state = stateFromHwnd(hwnd);
|
||||
const dpi = win32.dpiFromHwnd(hwnd);
|
||||
const cell_size = getFont(dpi, getFontSize(), getFontFace()).getCellSize(i32);
|
||||
|
|
Loading…
Add table
Reference in a new issue