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 ff8b4aa7b5
commit 3789326a42
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ void CefBrowserPlatformDelegateNativeMac::TranslateWheelEvent(
result.SetType(blink::WebInputEvent::kMouseWheel); result.SetType(blink::WebInputEvent::kMouseWheel);
static const double scrollbarPixelsPerCocoaTick = 40.0; static const double scrollbarPixelsPerCocoaTick = 40.0;
result.delta_y = deltaX; result.delta_x = deltaX;
result.delta_y = deltaY; result.delta_y = deltaY;
result.wheel_ticks_x = deltaX / scrollbarPixelsPerCocoaTick; result.wheel_ticks_x = deltaX / scrollbarPixelsPerCocoaTick;
result.wheel_ticks_y = deltaY / scrollbarPixelsPerCocoaTick; result.wheel_ticks_y = deltaY / scrollbarPixelsPerCocoaTick;