diff --git a/app/src/convert.c b/app/src/convert.c index ec6f1de0f3f42e1065261cf42067ad8cb11ba427..2c17f948b5bd55c3583150e27400d8605e972b7a 100644 --- a/app/src/convert.c +++ b/app/src/convert.c @@ -172,7 +172,10 @@ SDL_bool mouse_wheel_from_sdl_to_android(const SDL_MouseWheelEvent *from, to->scroll_event.position = position; int mul = from->direction == SDL_MOUSEWHEEL_NORMAL ? 1 : -1; - to->scroll_event.hscroll = mul * from->x; + // SDL behavior seems inconsistent between horizontal and vertical scrolling + // so reverse the horizontal + // + to->scroll_event.hscroll = -mul * from->x; to->scroll_event.vscroll = mul * from->y; return SDL_TRUE;