Bug 484981 - Scrolling on Combox to change selected option should be disabled for better usability
Summary: Scrolling on Combox to change selected option should be disabled for better u...
Status: RESOLVED DUPLICATE of bug 399324
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray widget (show other bugs)
Version: master
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 13:55 UTC by Sahil Arora
Modified: 2024-08-01 19:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***