Bug 484981

Summary: Scrolling on Combox to change selected option should be disabled for better usability
Product: [Plasma] plasmashell Reporter: Sahil Arora <iamsahil>
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugs.kde.org, materka, nate
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sahil Arora 2024-04-03 13:55:59 UTC
SUMMARY
Scrolling on Combox to change selected option should be disabled for better usability.
If we use a scroll event on a combobox it causes the selected option to change. This is usually not much of an issue as the UI doesn't have that many comboboxes but pages such "System Tray Settings" > "Entries" has multiple comboboxes in column, which inadvertently triggers this combobox selection event.  

STEPS TO REPRODUCE
1. Open  "System Tray Settings" > "Entries" 
2. Scroll over a combobox


OBSERVED RESULT
Selected item will change

EXPECTED RESULT
Selected item shouldn't change

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.2-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ASUS TUF Gaming A15 FA506IV
System Version: 1.0

ADDITIONAL INFORMATION
Did see a bug related to this open in qt backlogs
https://bugreports.qt.io/browse/QTBUG-48620?jql=text%20~%20%22combobox%20scroll%22%20AND%20status%20%3D%20Open%20

Adding this to the combobox would fix this issue.
But I beleive this should be fixed upstream in qt to add a new property to ignore mouse scroll events on the combobox. Further I couldn't find this behavior documented in any qt docs. Further as no type of combobox (web / microsoft etc) doesn't support such a scroll event on combobox for better ux this scroll event should be disabled by default
   ``` MouseArea {
        anchors.fill: parent
        onWheel: {
            // do nothing
        }
        onPressed: {
            // propogate to ComboBox
            mouse.accepted = false;
        }
        onReleased: {
            // propogate to ComboBox
            mouse.accepted = false;
        }
    } ```
Comment 1 Nate Graham 2024-08-01 19:30:29 UTC

*** This bug has been marked as a duplicate of bug 399324 ***