Merge branch 'glfw-wl-touchpad-scale' of https://github.com/xsrvmy/kitty

This commit is contained in:
Kovid Goyal 2022-02-14 07:18:49 +05:30
commit cc039afc1e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

4
glfw/wl_init.c vendored
View File

@ -336,14 +336,14 @@ static void pointerHandleAxis(void* data UNUSED,
window->wl.axis_discrete_count.x--;
return;
}
x = -wl_fixed_to_double(value);
x = -wl_fixed_to_double(value) * (window->wl.scale);
}
else if (axis == WL_POINTER_AXIS_VERTICAL_SCROLL) {
if (window->wl.axis_discrete_count.y) {
window->wl.axis_discrete_count.y--;
return;
}
y = -wl_fixed_to_double(value);
y = -wl_fixed_to_double(value) * (window->wl.scale);
}
_glfwInputScroll(window, x, y, 1, _glfw.wl.xkb.states.modifiers);