Bug 341536 - scroll function of KMix tray icon is not usable with plasms 5 tray
Summary: scroll function of KMix tray icon is not usable with plasms 5 tray
Status: RESOLVED FIXED
Alias: None
Product: kmix
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Esken
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-04 00:11 UTC by Weng Xuetian
Modified: 2016-01-15 03:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Weng Xuetian 2014-12-04 00:11:38 UTC
Might see this first: https://bugs.kde.org/show_bug.cgi?id=313579
With hi-precision mouse/touchpad (And possibly caused by XInput2 support in Qt), the WheelEvent will come in with very high frequency (10~20 per sec, -30 < delta < 30), which basically make the volum adjustion with mouse wheel not usable.

My recommendation fix for this is use a value to accumulate the delta size and round it by 120 for every 5% change (or maybe 36 for 1% change), when the accumulated delta reaches the certain point, do the actual volume update.

Reproducible: Always

Steps to Reproduce:
1. Use plasma 5
2. scroll with modern synaptic touchpad

Actual Results:  
The volume change too fast.

Expected Results:  
Volume changes more steadily.
Comment 1 Christian Esken 2015-01-20 20:17:45 UTC
@Weng Xuetian: Thanks for your help. I am currently doing a start-of-year swipe of tickets and reviewboard for KMix. I will do some tests, but will likely apply your patch soon.
Comment 2 Christian Esken 2015-01-20 21:11:33 UTC
Git commit e318bedab3022b2972f0fe9699529afa75d68372 by Christian Esken.
Committed on 20/01/2015 at 21:09.
Pushed by esken into branch 'master'.

Fix kmix tray icon scrolling for high-precision scroll devices like
touchpads.
Related: bug 313579
REVIEW: 121725

M  +23   -6    gui/kmixdockwidget.cpp
M  +1    -0    gui/kmixdockwidget.h

http://commits.kde.org/kmix/e318bedab3022b2972f0fe9699529afa75d68372
Comment 3 Peterson Silva 2016-01-15 03:01:27 UTC
Guys,

In what version of KDE is this supposed to be fixed? I'm still having this problem in KDE5 (plasma-desktop version 4:5.4.2-0ubuntu2).