Fixed the direction of horizontal scrolling with mousewheel

This commit is contained in:
loonycyborg 2016-06-25 16:52:29 +03:00
parent 9db9a26143
commit dfe2f331a8

View file

@ -268,9 +268,9 @@ void mouse_handler_base::mouse_wheel(int scrollx, int scrolly, bool browse)
CKey pressed; CKey pressed;
// Alt + mousewheel do an 90° rotation on the scroll direction // Alt + mousewheel do an 90° rotation on the scroll direction
if (pressed[SDLK_LALT] || pressed[SDLK_RALT]) { if (pressed[SDLK_LALT] || pressed[SDLK_RALT]) {
gui().scroll(movey,movex); gui().scroll(-movey,-movex);
} else { } else {
gui().scroll(movex,-movey); gui().scroll(-movex,-movey);
} }
} }