From 827f4a895a10a900bdff710c84df7acdf3fef047 Mon Sep 17 00:00:00 2001 From: hondres Date: Mon, 7 Mar 2016 11:24:27 +0100 Subject: [PATCH] osx: fix inverted horizontal scrolling (cherry picked from commit 02eddbf7dae761c7763119271bb5cca5c0059c03) --- platform/osx/os_osx.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index bb99e6ade72..4b339af6d4a 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;