mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix DCHECK when mouse wheel deltas are 0 (issue #2515)
This commit is contained in:
@ -1213,6 +1213,11 @@ void CefBrowserHostImpl::SendMouseMoveEvent(const CefMouseEvent& event,
|
|||||||
void CefBrowserHostImpl::SendMouseWheelEvent(const CefMouseEvent& event,
|
void CefBrowserHostImpl::SendMouseWheelEvent(const CefMouseEvent& event,
|
||||||
int deltaX,
|
int deltaX,
|
||||||
int deltaY) {
|
int deltaY) {
|
||||||
|
if (deltaX == 0 && deltaY == 0) {
|
||||||
|
// Nothing to do.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!CEF_CURRENTLY_ON_UIT()) {
|
if (!CEF_CURRENTLY_ON_UIT()) {
|
||||||
CEF_POST_TASK(CEF_UIT,
|
CEF_POST_TASK(CEF_UIT,
|
||||||
base::BindOnce(&CefBrowserHostImpl::SendMouseWheelEvent, this,
|
base::BindOnce(&CefBrowserHostImpl::SendMouseWheelEvent, this,
|
||||||
|
Reference in New Issue
Block a user