Bug 448504

Summary: Horizontal scrollviews (e.g. Task Manager Grouped task tooltips with a bottom panel) cannot be scrolled horizontally using a vertical wheel
Product: [Plasma] plasmashell Reporter: Fushan Wen <qydwhotmail>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Marco Martin <notmart>
Status: CONFIRMED ---    
Severity: normal CC: doncbugs, emoxam, kdedev, nate, noahadvs, plasma-bugs-null, qydwhotmail, rlk, sephiroth_pk, unblended_icing552
Priority: NOR Keywords: regression
Version First Reported In: 5.90.0   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=463054
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Fushan Wen 2022-01-15 02:56:21 UTC
SUMMARY
The scroll view in task tooltips cannot be scrolled using a vertical wheel when the scroll direction is horizontal.


STEPS TO REPRODUCE
1. Open many Konsole windows
2. Scroll vertically in the horizontal scroll view

OBSERVED RESULT
Can't scroll.

EXPECTED RESULT
Can scroll

SOFTWARE/OS VERSIONS
Information for package plasma5-desktop:
----------------------------------------
Repository     : unstable-kde-frameworks
Name           : plasma5-desktop
Version        : 5.24.80git.20220114T114728~85438ea35-ku.130.1
Arch           : x86_64
Vendor         : obs://build.opensuse.org/KDE:Unstable
Installed Size : 8.6 MiB
Installed      : Yes
Status         : out-of-date (version 5.23.80git.20220112T014832~1dac2e37f-ku.127.1 installed)
Source package : plasma5-desktop-5.24.80git.20220114T114728~85438ea35-ku.130.1.src
Summary        : The KDE Plasma Workspace Components
Comment 1 Nate Graham 2022-01-21 00:59:29 UTC
Probably caused by https://invent.kde.org/frameworks/kirigami/-/commit/f6ca218607ff7e5d5066eb3224154c3256cb9516

Options:
1. Manually re-enable horizontal scrolling for this view
2. Revert the change to not make vertical scrolls scroll on horizontal scrollviews; make this an opt-out, not an opt-in
3. Figure out a way to implement the originally requested change to make vertical scrolling on a horizontal scrollview only scroll it when that scrollview is not also inside a vertical scrollview
Comment 2 doncbugs 2022-05-21 14:24:05 UTC
Before the scrollbar, it was possible to click and drag to scroll through it, like swiping gestures. Briefly, it was possible to scroll with the mouse wheel, which was fantastic. I recall a bug fix potentially mentioning disabling it. Is it just not going to be possible to scroll through application instances with the mouse?

> 3. Figure out a way to implement the originally requested change to make vertical scrolling on a horizontal scrollview only scroll it when that scrollview is not also inside a vertical scrollview

Is it not possible to scroll based on priority? i.e. scrolling horizontally when the cursor is inside the horizontal scrollview that's inside a vertical scrollview; scrolling vertically when in vertical scrollview unless the cursor pauses and readjusts inside of a horizontal scrollview within the vertical scrollview?
Comment 3 Nate Graham 2022-05-23 15:03:44 UTC
Not easily, no. We tried that and it didn't really work.
Comment 4 Nate Graham 2023-04-24 16:54:27 UTC
*** Bug 468787 has been marked as a duplicate of this bug. ***
Comment 5 emoxam 2025-01-17 06:40:26 UTC Comment hidden (spam)
Comment 6 Nate Graham 2025-01-21 21:15:03 UTC Comment hidden (spam)
Comment 7 Marco Martin 2025-04-04 14:52:16 UTC
probably this should be implemented in the taskmanager tooltips directly
Comment 8 Nate Graham 2025-04-10 21:02:46 UTC
The Task Manager tooltips in ToolTipDelegate.qml are just a plain old ListView in a ScrollView. ScrollView injects a Kirigami.WheelHandler, which has this problem, which is why this bug report is in Kirigami.

At the minimum, holding down Alt when scrolling using a wheel should perform horizontal scrolling, per normal Qt scrolling heuristics.
Comment 9 Noah Davis 2025-04-17 14:33:45 UTC
(In reply to Nate Graham from comment #8)
> At the minimum, holding down Alt when scrolling using a wheel should perform horizontal scrolling, per normal Qt scrolling heuristics.

It actually is supposed to do this already, but it seems that keyboard input for WheelHandler is currently broken even though the relevant keyboard scrolling autotests pass.
Comment 10 Noah Davis 2025-04-28 18:45:17 UTC
Without Kirigami WheelHandler in our ScrollView components, you would normally have to implement custom behavior with a Qt Quick WheelHandler or MouseArea anyway to achieve horizontal scrolling with vertical movement, so I think this should be moved to plasmashell.
Comment 11 Nate Graham 2025-06-25 18:35:34 UTC
*** Bug 506027 has been marked as a duplicate of this bug. ***
Comment 12 emoxam 2025-06-26 06:16:00 UTC
i don't understand what one if these 3 duplicates bugs are good so i write here.

It stopped to work even with the alt key on the plasma 6.3.5 with wayland?

Operating System: Kubuntu 25.04
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.8.3
Kernel Version: 6.14.0-15-generic (64-bit)
Graphics Platform: Wayland