-
Notifications
You must be signed in to change notification settings - Fork 13
Refactor slider code, fix mouse wheel for kf5. #72
base: kf5
Are you sure you want to change the base?
Conversation
- Make sure snapMode is set correctly.
// Should also be locked during mouse wheel scrolling. | ||
valuesLock = true | ||
brightness = value | ||
// Backport of https://invent.kde.org/plasma/libplasma/-/commit/aea3d4b131070d8388edf84c9c2a32f7b4203617 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understood this correctly, this code doesn't need to be implemented for the KF6 version because it's built into PlasmaComponents.Slider?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe? It depends on when the distro updates KF6 versions.
Sorry for the late reply, I will modify the code you mentioned as soon as possible and test it. |
After thinking about it for a weekend, I thought of a way to fix this issue: let the backend return messages with timestamps, and let plasmoid ignore the old dirty data. Edited: This may be too complex. |
Alternative to #63 .
onValueChanged
instead ofonMoved
to simplify the code.As for KDE Plasma 6, it needs to be tested. I don't have any machine with KDE Plasma 6 for now.
Related bug: https://bugreports.qt.io/browse/QTBUG-93081