File 2000-scrolling.patch of Package konsole

diff --git a/src/ScrollState.cpp b/src/ScrollState.cpp
index 5922776b71508d932743aacd9c351a5e106f523c..f7a2786322f4383b79b8e9b77816a3d96114a104 100644
--- a/src/ScrollState.cpp
+++ b/src/ScrollState.cpp
@@ -8,14 +8,18 @@
 
 #include <QWheelEvent>
 
+#include <KWindowSystem>
+
 using namespace Konsole;
 
 void ScrollState::addWheelEvent(const QWheelEvent *wheel)
 {
-    if ((wheel->angleDelta().y() != 0) && (wheel->pixelDelta().y() == 0)) {
-        _remainingScrollPixel = 0;
-    } else {
-        _remainingScrollPixel += wheel->pixelDelta().y();
+    if (!KWindowSystem::isPlatformWayland()) {
+        if ((wheel->angleDelta().y() != 0) && (wheel->pixelDelta().y() == 0)) {
+            _remainingScrollPixel = 0;
+        } else {
+            _remainingScrollPixel += wheel->pixelDelta().y();
+        }
     }
     _remainingScrollAngle += wheel->angleDelta().y();
 }
openSUSE Build Service is sponsored by