Bug 475260

Summary: Scrollbar in sidebar causes window to be dragged on click-and-hold
Product: [Applications] systemsettings Reporter: amy
Component: sidebarviewAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: jtamate, me, nate, notmart
Priority: NOR Keywords: qt6
Version: master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description amy 2023-10-06 03:10:45 UTC
SUMMARY
In the sidebar, when trying to click-and-hold the scrollbar in order to scroll, the cursor changes into a moving indicator after about half of a second, at which point the window will be dragged instead of the scrollbar until the click is released.


STEPS TO REPRODUCE
1. Open System Settings
2. Click-and-hold on the scrollbar in the sidebar
3. Hold for about half of a second and observe the window being dragged

OBSERVED RESULT
Window gets dragged instead of scrollbar

EXPECTED RESULT
Scrollbar is dragged until click is released

SOFTWARE/OS VERSIONS
Linux: 6.5.5
KDE Plasma Version: 5.27.80 (built from kf6-qt6 master branch)
KDE Frameworks Version: 5.240.0 (built from kf6-qt6 master branch)
Qt Version: 6.5.3

ADDITIONAL INFORMATION
X11
Comment 1 Nate Graham 2023-10-07 02:28:05 UTC
Can confirm on Wayland too. Cannot reproduce in other Kirigami-based apps; only the scrollbar in System Settings' sidebar.
Comment 2 ratijas 2023-10-07 12:30:38 UTC
Not a scroll bar specifically.  There's something fundamentally regressed about event handling in QQuickWidget in Qt 6. At least on X11 system settings's sidebar is draggable from any point if you hold it for a bit.

It's either an upstream bug, or KCMUtils is cooking it wrong.
Comment 3 Patrick Silva 2023-10-08 12:36:23 UTC
*** Bug 475359 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2023-10-24 21:10:24 UTC
Cannot reproduce anymore with today's git master. Must have been fixed by recent System Settings sidebar code changes.
Comment 5 ratijas 2023-10-27 11:41:58 UTC
Can not reproduce in kcmshell either (anymore).