mirror of https://github.com/encounter/SDL.git
Fixed bug 4012 - Wayland: invalid direction on mouse wheel
Vladimir Invalid direction on mouse wheel Patch tested in Centos 7 + Weston
This commit is contained in:
parent
6bc3873729
commit
1fa4bcca6a
|
@ -337,10 +337,10 @@ pointer_handle_axis_common(struct SDL_WaylandInput *input,
|
||||||
switch (a) {
|
switch (a) {
|
||||||
case WL_POINTER_AXIS_VERTICAL_SCROLL:
|
case WL_POINTER_AXIS_VERTICAL_SCROLL:
|
||||||
x = 0;
|
x = 0;
|
||||||
y = (float)wl_fixed_to_double(value);
|
y = 0 - (float)wl_fixed_to_double(value);
|
||||||
break;
|
break;
|
||||||
case WL_POINTER_AXIS_HORIZONTAL_SCROLL:
|
case WL_POINTER_AXIS_HORIZONTAL_SCROLL:
|
||||||
x = (float)wl_fixed_to_double(value);
|
x = 0 - (float)wl_fixed_to_double(value);
|
||||||
y = 0;
|
y = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue