Skip to content

Commit b2cad0a

Browse files
authored
wayland: Fix missing break statement between the vertical and horizontal scroll cases. (#58)
* wayland: Fix missing `break` statement between the vertical and horizontal scroll cases. This would cause horizontal scroll to happen even while only vertical scroll is intended. Introduced in c6e9ee8. * wayland: Nitpick: Remove executable bit from the source files.
1 parent d277919 commit b2cad0a

File tree

6 files changed

+2
-0
lines changed

6 files changed

+2
-0
lines changed

Headers/wayland/WaylandServer.h

100755100644
File mode changed.

Source/wayland/WaylandServer+Cursor.m

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,11 @@
504504
case WL_POINTER_AXIS_VERTICAL_SCROLL:
505505
eventType = NSScrollWheel;
506506
deltaY = wl_fixed_to_double(value) * wlconfig->mouse_scroll_multiplier;
507+
break;
507508
case WL_POINTER_AXIS_HORIZONTAL_SCROLL:
508509
eventType = NSScrollWheel;
509510
deltaX = wl_fixed_to_double(value) * wlconfig->mouse_scroll_multiplier;
511+
break;
510512
}
511513

512514
/* FIXME: X11 backend uses the XGetPointerMapping()-returned values from

Source/wayland/WaylandServer+Keyboard.m

100755100644
File mode changed.

Source/wayland/WaylandServer+Layershell.m

100755100644
File mode changed.

Source/wayland/WaylandServer+Output.m

100755100644
File mode changed.

Source/wayland/WaylandServer+Seat.m

100755100644
File mode changed.

0 commit comments

Comments
 (0)