[pim/mimetreeparser] src/quick: Do not double-apply scroll on scroll target

Claudio Cambra <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit d4f9a9b5159415152d2a4b02a74c33b66dc91685 by Claudio Cambra.
Committed on 16/08/2026 at 16:51.
Pushed by clau-cambra into branch 'master'.

Do not double-apply scroll on scroll target

M  +1    -1    src/quick/wheelinterceptor.cpp

https://invent.kde.org/pim/mimetreeparser/-/commit/d4f9a9b5159415152d2a4b02a74c33b66dc91685

diff --git a/src/quick/wheelinterceptor.cpp b/src/quick/wheelinterceptor.cpp
index 69ddc60..a88df8a 100644
--- a/src/quick/wheelinterceptor.cpp
+++ b/src/quick/wheelinterceptor.cpp
@@ -119,7 +119,7 @@ bool WheelInterceptor::eventFilter(QObject *obj, QEvent *event)
         const auto js = QStringLiteral("window.scrollBy(%1, 0)").arg(deltaX);
         QMetaObject::invokeMethod(m_source, "runJavaScript", Q_ARG(QString, js));
     }
-    if (m_scrollTarget) {
+    if (m_scrollTarget && m_scrollTarget != m_target) {
         applyScroll(m_scrollTarget, deltaY);
     }
     return true;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.