[PATCH] Fix Scroll Wheel issue in AllApps submenu of Application Dashboard
authorTomislav Pap <bad63r@gmail.com>
Mon, 24 Mar 2025 23:23:07 +0000 (23:23 +0000)
committerAurélien COUDERC <coucouf@debian.org>
Mon, 21 Jul 2025 16:21:10 +0000 (18:21 +0200)
Scroll with mouse wheel was problematic in AllApps subsection. It worked
partially, abruptly stopping when hovering over app icons, or just
during mouse wheel scrolling.

The problem is that QQuick WheelInterceptor::findwheelArea() never entered
into its if statement because there are 3 children elements of QML parent,
and their z axis values are 1, 0, 0 respectfully.

BUG: 486481
FIXED-IN: 6.4.0

Gbp-Pq: Name upstream_4f9b1a69_Fix-Scroll-Wheel-issue-in-AllApps-submenu-of-Application-Dashboard.patch

applets/kicker/plugin/wheelinterceptor.cpp

index a79130bcc18ca5977528ea87a7cb4da1a4502ca1..1e797857183bd07559722ac539a149947f7680f5 100644 (file)
@@ -51,7 +51,7 @@ QQuickItem *WheelInterceptor::findWheelArea(QQuickItem *parent) const
         // HACK: ScrollView adds the WheelArea below its flickableItem with
         // z==-1. This is reasonable non-risky considering we know about
         // everything else in there, and worst case we break the mouse wheel.
-        if (child->z() == -1) {
+        if (child->z() >= -1) {
             return child;
         }
     }