mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-11 17:44:54 +01:00
macOS: Fix horizontal scrolling with trackpad (issue #2261)
This commit is contained in:
parent
c1269e105d
commit
c95b92f1e8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user