From cf6b57d659d19dbac6eb899b197176b06ac38812 Mon Sep 17 00:00:00 2001 From: Mike Wiedenbauer Date: Thu, 2 Apr 2020 20:59:26 +0000 Subject: [PATCH] Enable smooth scrolling with OSR (fixes issue #2895) --- libcef/browser/native/browser_platform_delegate_native_aura.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcef/browser/native/browser_platform_delegate_native_aura.cc b/libcef/browser/native/browser_platform_delegate_native_aura.cc index e97d2af85..e036c98ea 100644 --- a/libcef/browser/native/browser_platform_delegate_native_aura.cc +++ b/libcef/browser/native/browser_platform_delegate_native_aura.cc @@ -176,7 +176,8 @@ ui::MouseWheelEvent CefBrowserPlatformDelegateNativeAura::TranslateUiWheelEvent( int changed_button_flags = TranslateUiChangedButtonFlags(mouse_event.modifiers); - return ui::MouseWheelEvent(offset, location, root_location, time_stamp, flags, + return ui::MouseWheelEvent(offset, location, root_location, time_stamp, + (ui::EF_PRECISION_SCROLLING_DELTA | flags), changed_button_flags); }