mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 04:30:46 +01:00
Fix DCHECK when mouse wheel deltas are 0 (issue #2515)
This commit is contained in:
parent
e6a3a5b72d
commit
48dabc9143
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user