diff options
author | hondres <liu.gam3@gmail.com> | 2016-03-07 11:24:27 +0100 |
---|---|---|
committer | hondres <liu.gam3@gmail.com> | 2016-03-07 11:24:27 +0100 |
commit | 02eddbf7dae761c7763119271bb5cca5c0059c03 (patch) | |
tree | 9a6421d2f2ef2a98a60a936b619138e9fd13cb00 | |
parent | 1b806ef54e4f74a47e5d922330f63bf53220fffd (diff) |
osx: fix inverted horizontal scrolling
-rw-r--r-- | platform/osx/os_osx.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index bb99e6ade7..4b339af6d4 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -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; |