Fixes event scrolling per issue #2218. UNIXes (namely, Linux and other non-Windows, non-macOS) were scrolling horizontally the incorrect direction. This addresses a problem that was introduced in #1754.

This commit is contained in:
ancestral 2018-02-10 22:08:19 -06:00
parent 90e693fdce
commit 5ee034b14e

View file

@ -132,7 +132,11 @@ void controller_base::handle_event(const SDL_Event& event)
break;
case SDL_MOUSEWHEEL:
#if defined(_WIN32) || defined(__APPLE__)
mh_base.mouse_wheel(-event.wheel.x, event.wheel.y, is_browsing());
#else
mh_base.mouse_wheel(event.wheel.x, event.wheel.y, is_browsing());
#endif
break;
default: