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:
parent
90e693fdce
commit
5ee034b14e
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue