From 3789326a42a25252a713016b7e79dc3be1ba7244 Mon Sep 17 00:00:00 2001 From: Kaustubh Vats Date: Wed, 13 Sep 2017 16:47:43 +0000 Subject: [PATCH] macOS: Fix horizontal scrolling with trackpad (issue #2261) --- libcef/browser/native/browser_platform_delegate_native_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcef/browser/native/browser_platform_delegate_native_mac.mm b/libcef/browser/native/browser_platform_delegate_native_mac.mm index ea0507a87..c71b68cf8 100644 --- a/libcef/browser/native/browser_platform_delegate_native_mac.mm +++ b/libcef/browser/native/browser_platform_delegate_native_mac.mm @@ -417,7 +417,7 @@ void CefBrowserPlatformDelegateNativeMac::TranslateWheelEvent( result.SetType(blink::WebInputEvent::kMouseWheel); static const double scrollbarPixelsPerCocoaTick = 40.0; - result.delta_y = deltaX; + result.delta_x = deltaX; result.delta_y = deltaY; result.wheel_ticks_x = deltaX / scrollbarPixelsPerCocoaTick; result.wheel_ticks_y = deltaY / scrollbarPixelsPerCocoaTick;