Merge pull request #3972 from Hinsbart/fix_hscroll

osx: fix inverted horizontal scrolling
This commit is contained in:
Rémi Verschelde 2016-03-07 11:30:09 +01:00
commit 973f7d56f3
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ static int translateKey(unsigned int key)
InputEvent ev;
ev.type=InputEvent::MOUSE_BUTTON;
ev.mouse_button.button_index=deltaX >0 ? BUTTON_WHEEL_RIGHT : BUTTON_WHEEL_LEFT;
ev.mouse_button.button_index=deltaX < 0 ? BUTTON_WHEEL_RIGHT : BUTTON_WHEEL_LEFT;
ev.mouse_button.pressed=true;
ev.mouse_button.x=mouse_x;
ev.mouse_button.y=mouse_y;