diff --git a/src/lib/webengine/webview.cpp b/src/lib/webengine/webview.cpp --- a/src/lib/webengine/webview.cpp +++ b/src/lib/webengine/webview.cpp @@ -1030,6 +1030,7 @@ return; } +#if QT_VERSION < QT_VERSION_CHECK(5,15,0) if (event->modifiers() & Qt::ControlModifier) { m_wheelHelper.processEvent(event); while (WheelHelper::Direction direction = m_wheelHelper.takeDirection()) { @@ -1051,10 +1052,12 @@ event->accept(); return; } +#endif m_wheelHelper.reset(); - // QtWebEngine ignores QApplication::wheelScrollLines() and instead always scrolls 3 lines +#if QT_VERSION < QT_VERSION_CHECK(5,9,0) + // QtWebEngine < 5.9 ignores QApplication::wheelScrollLines() and instead always scrolls 3 lines if (event->spontaneous()) { const qreal multiplier = QApplication::wheelScrollLines() / 3.0; if (multiplier != 1.0) { @@ -1065,6 +1068,7 @@ event->accept(); } } +#endif } void WebView::_mousePressEvent(QMouseEvent *event)