Skip to content

Commit

Permalink
Fixed bug 4012 - Wayland: invalid direction on mouse wheel
Browse files Browse the repository at this point in the history
Vladimir

Invalid direction on mouse wheel

Patch tested in Centos 7 + Weston
  • Loading branch information
slouken committed Jan 3, 2018
1 parent 6bc3873 commit 1fa4bcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/wayland/SDL_waylandevents.c
Expand Up @@ -337,10 +337,10 @@ pointer_handle_axis_common(struct SDL_WaylandInput *input,
switch (a) {
case WL_POINTER_AXIS_VERTICAL_SCROLL:
x = 0;
y = (float)wl_fixed_to_double(value);
y = 0 - (float)wl_fixed_to_double(value);
break;
case WL_POINTER_AXIS_HORIZONTAL_SCROLL:
x = (float)wl_fixed_to_double(value);
x = 0 - (float)wl_fixed_to_double(value);
y = 0;
break;
default:
Expand Down

0 comments on commit 1fa4bcc

Please sign in to comment.