From e898e682ef94a7c21d87d62643b62d4ebdd7945d Mon Sep 17 00:00:00 2001 From: L-Super <40905056+L-Super@users.noreply.github.com> Date: Fri, 1 Sep 2023 17:42:42 +0800 Subject: [PATCH] fix mouse wheel event bug The arguments are in the wrong order --- src/details/QCefViewPrivate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/details/QCefViewPrivate.cpp b/src/details/QCefViewPrivate.cpp index 3124b2f4..e8cdb116 100644 --- a/src/details/QCefViewPrivate.cpp +++ b/src/details/QCefViewPrivate.cpp @@ -929,7 +929,7 @@ QCefViewPrivate::onViewWheelEvent(QWheelEvent* event) e.x = p.x(); e.y = p.y(); pCefBrowser_->GetHost()->SendMouseWheelEvent( - e, m & Qt::ShiftModifier ? 0 : d.x(), m & Qt::ShiftModifier ? 0 : d.y()); + e, m & Qt::ShiftModifier ? d.x() : 0, m & Qt::ShiftModifier ? d.y() : 0); } // #endif }