Fixed the direction of horizontal scrolling with mousewheel
This commit is contained in:
parent
9db9a26143
commit
dfe2f331a8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue