Skip to content

Commit

Permalink
Merge pull request #2481 from wesnoth/fix_map_trackpad_scrolling_on_unix
Browse files Browse the repository at this point in the history
Fixes event scrolling per issue #2218
  • Loading branch information
ancestral committed Feb 11, 2018
2 parents 90e693f + 5ee034b commit 4bc4373
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 4bc4373

Please sign in to comment.