macOS: Fix horizontal scrolling with trackpad (issue #2261)

This commit is contained in:
Kaustubh Vats 2017-09-13 16:47:43 +00:00 committed by Marshall Greenblatt
parent c1269e105d
commit c95b92f1e8
1 changed files with 1 additions and 1 deletions

View File

@ -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;