Bug 343611

Summary: Using mouse wheel events on clock is unreliable.
Product: [Plasma] plasmashell Reporter: Cesar Garcia <cesarg9>
Component: Digital Clock widgetAssignee: Martin Klapetek <mklapetek>
Status: RESOLVED FIXED    
Severity: normal CC: bshah, kde
Priority: NOR    
Version First Reported In: 5.1.95   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Cesar Garcia 2015-01-31 03:53:18 UTC
Using the mouse wheel or touchpad to interact with widgets that can respond to mouse wheel events (kmix and clock widget, for example) is unreliable because a minimal movement causes too much events.

For example using a minimal touchpad swipe with the cursor placed in the kmix icon causes it to go from 100% to 0% in one go as opossed to some percentage like plasma 4.1x.

Another example is trying to change the displayed clock timezone in the clock widget. A minimal moment causes it to flicker very fast between all the available timezones, making it almost impossible to select the correct one.

Reproducible: Always

Steps to Reproduce:
1. Add kmix or the clock widget to plasma desktop.
2. Try to change volume or timezone using the mouse wheel or touchpad.
3.

Actual Results:  
Kmix increases/decreases volume going to 0-100% or any value between them, making impossible to select a desired value.
The clock widget siwtch between timezones too fast, skipping many timezones.

Expected Results:  
Kmix increases/decreases volume slowly and in a controlled manner.
The clock widget siwtch between timezones, one at a time.

Using plasma 5.2.0
Comment 1 David Edmundson 2015-02-03 08:45:10 UTC
I'm moving this to be about the digital clock.

If you want to file a bug about the way kmix behaves, file a bug on kmix. Same for any other applet.
Comment 2 Martin Klapetek 2015-02-03 09:21:00 UTC
We do have code in place that should prevent exactly this kind of behavior.

I'll have a look.
Comment 3 Martin Klapetek 2015-02-19 22:51:23 UTC
Git commit 83267f7d0ec85a9dacd24ca3ad14e87d573b08e8 by Martin Klapetek.
Committed on 19/02/2015 at 22:50.
Pushed by mklapetek into branch 'Plasma/5.2'.

[digital-clock] Improve the scrolling on the applet

This is now the same code that's in KMix and other places.
Reviewed-by: Kai Uwe Broulik

M  +17   -9    applets/digital-clock/package/contents/ui/DigitalClock.qml

http://commits.kde.org/plasma-workspace/83267f7d0ec85a9dacd24ca3ad14e87d573b08e8