https://bugs.kde.org/show_bug.cgi?id=434769
Nate Graham <n...@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version Fixed In| |5.21.4 Resolution|--- |FIXED Status|ASSIGNED |RESOLVED Latest Commit| |https://invent.kde.org/plas | |ma/plasma-pa/commit/52cb6b0 | |eecc3092708c207346a13a36e77 | |2a6bca --- Comment #3 from Nate Graham <n...@kde.org> --- Git commit 52cb6b0eecc3092708c207346a13a36e772a6bca by Nate Graham. Committed on 22/03/2021 at 18:07. Pushed by ngraham into branch 'master'. Round volume to avoid increasing or decreasing by more than stepSize Sometimes when you increase or decrease the volume using the key on your keyboard or a global shortcut, it will change by more than the stepSize. For example when you're at 40% volume and go up when a stepSize of 5%, sometimes it will change to 46% volume, not 45%. The reason for this is that the Volume number we get from PulseAudio and then manipulate is a float. So we have to round it down to avoid accumulating errors over time. The percentage display function already rounds, so let's do the same thing in the functions to increase and decrease the volume. We should also use Math.floor() rather than Math.round() to ensure consistency in the values we're using. FIXED-IN: 5.21.4 M +2 -2 applet/contents/ui/main.qml https://invent.kde.org/plasma/plasma-pa/commit/52cb6b0eecc3092708c207346a13a36e772a6bca -- You are receiving this mail because: You are watching all bug changes.