Fix DCHECK when mouse wheel deltas are 0 (issue #2515)

This commit is contained in:
Marshall Greenblatt 2018-09-27 14:17:48 +02:00
parent e6a3a5b72d
commit 48dabc9143

View File

@ -1231,6 +1231,11 @@ void CefBrowserHostImpl::SendMouseMoveEvent(const CefMouseEvent& event,
void CefBrowserHostImpl::SendMouseWheelEvent(const CefMouseEvent& event,
int deltaX,
int deltaY) {
if (deltaX == 0 && deltaY == 0) {
// Nothing to do.
return;
}
if (!CEF_CURRENTLY_ON_UIT()) {
CEF_POST_TASK(CEF_UIT,
base::BindOnce(&CefBrowserHostImpl::SendMouseWheelEvent, this,