Skip to content

Commit

Permalink
Fixes event scrolling per issue #2218. UNIXes (namely, Linux and othe…
Browse files Browse the repository at this point in the history
…r non-Windows, non-macOS) were scrolling horizontally the incorrect direction. This addresses a problem that was introduced in #1754.
  • Loading branch information
ancestral committed Feb 11, 2018
1 parent 90e693f commit 5ee034b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controller_base.cpp
Expand Up @@ -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:
Expand Down

0 comments on commit 5ee034b

Please sign in to comment.