change audio scroll bound

Change default behavior from 0% - 99% to 0% - 100%.
This commit is contained in:
Hetian Huo 2019-09-28 18:05:31 -05:00 committed by GitHub
parent 3131eb0774
commit 3d1fd4f5ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ bool waybar::modules::Pulseaudio::handleScroll(GdkEventScroll *e) {
change = round(config_["scroll-step"].asDouble() * volume_tick);
}
if (dir == SCROLL_DIR::UP) {
if (volume_ + 1 < 100) {
if (volume_ + 1 <= 100) {
pa_cvolume_inc(&pa_volume, change);
}
} else if (dir == SCROLL_DIR::DOWN) {