Diasable "AsyncWheelEvents" feature in current CEF framework

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Diasable "AsyncWheelEvents" feature in current CEF framework

Postby senya » Fri Mar 06, 2020 8:20 am

Hello.

How to disable "AsyncWheelEvents" feature in CEF Version: 77.1.14+g4fb61d2+chromium-77.0.3865.120?

My application crashes when trying to programmatically scroll with the mouse with an error:
[0306/140619.583607:FATAL:mouse_wheel_event_queue.cc(290)] Check failed: event_sent_for_gesture_ack_->event.phase != blink::WebMouseWheelEvent::kPhaseNone || event_sent_for_gesture_ack_->event.momentum_phase != blink::WebMouseWheelEvent::kPhaseNone.

When calling a method:
Code: Select all
CefBrowserHost::SendMouseWheelEvent


Having looked at the source code of chromium, I can assume that this is due to a feature "AsyncWheelEvents".
https://bitbucket.org/chromiumembedded/ ... sing-mouse

tried to apply such command line switches:
Code: Select all
CefApp::OnBeforeCommandLineProcessing

Code: Select all
command_line->AppendSwitch("disable-smooth-scrolling");
    command_line->AppendSwitchWithValue("disable-threaded-scrolling","1");
    command_line->AppendSwitchWithValue("disable-features","TouchpadAndWheelScrollLatching,AsyncWheelEvents,NetworkService");
    command_line->AppendSwitchWithValue("disable-blink-features","RootLayerScrolling");


This unfortunately did not help me.

My operating system is lubuntu linux 19.10.

Please tell me how to get around this error?
Thank you.
Sergey, developer from Moscow region.
It's hot here today
https://docs.zoho.eu/file/40henad156481 ... 29fb3a8ebe
senya
Mentor
 
Posts: 54
Joined: Mon Sep 18, 2017 2:58 pm

Re: Diasable "AsyncWheelEvents" feature in current CEF frame

Postby senya » Tue Mar 10, 2020 6:56 am

Replaced the native function of scrolling the mouse with a javascript function window.scrollBy until a solution to the problem is clarified.

It seems that the javascript function does not always work as it should, that is, it is worse than a native function ...
viewtopic.php?f=7&t=15187
Sergey, developer from Moscow region.
It's hot here today
https://docs.zoho.eu/file/40henad156481 ... 29fb3a8ebe
senya
Mentor
 
Posts: 54
Joined: Mon Sep 18, 2017 2:58 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 31 guests