Bug 512992

Summary: Changing scroll speed affects discrete scroll amount on free spinning mice with a lock feature.
Product: [Plasma] kwin Reporter: Byron <mydj555>
Component: libinputAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.5.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Byron 2025-12-05 20:35:18 UTC
SUMMARY
After updating KDE Plasma recently, I noticed that when I scroll in some games an individual scroll would be counted twice. When I decreased the scroll speed some scrolls would instead be skipped. After a bit of testing with `wev` I noticed that occasionally the discrete value for a single scroll would be more than 1 if the scroll speed was high, or the scroll event would be skipped entirely if the scroll speed was low.

STEPS TO REPRODUCE
1. Get a mouse like the Logitech G502 with a free spinning wheel with a toggle-able lock
2. Lock the scroll to discrete notches
3. Run `wev` or other application that relies on discrete scroll and observe the abnormal scroll events.

OBSERVED RESULT
Discrete scroll in applications running under kwin does not align with actual individual discrete scroll, and is either higher or lower than expected depending on scroll speed setting.

EXPECTED RESULT
Discrete scroll should not be affected by scroll speed.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.17.9-200 (Nobara 43)
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0

ADDITIONAL INFORMATION
Comment 1 Zamundaaa 2025-12-08 19:38:58 UTC

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