Hello,
How do I use smooth scrolling with OSR? Do I need to interpolate the delta myself when calling SendMouseWheelEvent?
I'm unable to get it to work using the most recent CEFClient with --off-screen-rendering-enabled.
Devyre wrote:This issue does not exclusively exist for OnAcceleratedPaint, even with only --off-screen-rendering-enabled there is no smoothing.
magreenblatt wrote:This is expected behavior with OnPaint because smooth scrolling is expensive when rendering to bitmap. The above comments about OnScrollOffsetChanged apply for OnPaint usage.
blink::WebMouseWheelEvent webkit_event =
event.native_event().message
? MakeUntranslatedWebMouseWheelEventFromNativeEvent(
event.native_event(), event.time_stamp(),
event.pointer_details().pointer_type)
: MakeWebMouseWheelEventFromUiEvent(event);
MSG msg = {hwnd_,
message,
wParam,
lParam,
static_cast<DWORD>(GetMessageTime()),
{CR_GET_X_LPARAM(lParam), CR_GET_Y_LPARAM(lParam)}};
browser_host->SendMouseWheelEventNative(msg);
Users browsing this forum: civilogic, Google [Bot] and 93 guests