diff options
author | Campbell Barton <campbell@blender.org> | 2022-10-19 08:35:32 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-10-19 08:35:32 +0300 |
commit | 760a6aa1f5d67d9638e44748dfd453729634b331 (patch) | |
tree | 150d5bc68accb24975334562aef93c9b044bdd8a | |
parent | 30d9a6245f892492188318e92b85083ef8b301f2 (diff) |
Fix error in 30d9a6245f892492188318e92b85083ef8b301f2
X/Y for mouse wheel events was unintentionally flipped.
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWayland.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp index 09f51199047..62f96e4e620 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cpp +++ b/intern/ghost/intern/GHOST_SystemWayland.cpp @@ -1904,11 +1904,11 @@ static void pointer_handle_frame(void *data, struct wl_pointer * /*wl_pointer*/) seat->pointer.scroll_xy[1] = 0; } - /* Discrete Y steps currently unsupported. */ - if (seat->pointer.scroll_discrete_xy[0]) { + /* Discrete X axis currently unsupported. */ + if (seat->pointer.scroll_discrete_xy[1]) { if (wl_surface *wl_surface_focus = seat->pointer.wl_surface) { GHOST_WindowWayland *win = ghost_wl_surface_user_data(wl_surface_focus); - const int32_t discrete = seat->pointer.scroll_discrete_xy[0]; + const int32_t discrete = seat->pointer.scroll_discrete_xy[1]; seat->system->pushEvent(new GHOST_EventWheel( seat->system->getMilliSeconds(), win, std::signbit(discrete) ? +1 : -1)); } |