From 01ef24d928b8455b580074501461bf9e9e702083 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 27 Sep 2018 14:17:48 +0200 Subject: [PATCH] Fix DCHECK when mouse wheel deltas are 0 (issue #2515) --- libcef/browser/browser_host_impl.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libcef/browser/browser_host_impl.cc b/libcef/browser/browser_host_impl.cc index 74f552d46..a628beb9f 100644 --- a/libcef/browser/browser_host_impl.cc +++ b/libcef/browser/browser_host_impl.cc @@ -1213,6 +1213,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,