Merge pull request #475 from SJK132/SJK132-audio-bound
change audio scroll bound
This commit is contained in:
commit
97e3226801
|
@ -86,7 +86,7 @@ bool waybar::modules::Pulseaudio::handleScroll(GdkEventScroll *e) {
|
||||||
change = round(config_["scroll-step"].asDouble() * volume_tick);
|
change = round(config_["scroll-step"].asDouble() * volume_tick);
|
||||||
}
|
}
|
||||||
if (dir == SCROLL_DIR::UP) {
|
if (dir == SCROLL_DIR::UP) {
|
||||||
if (volume_ + 1 < 100) {
|
if (volume_ + 1 <= 100) {
|
||||||
pa_cvolume_inc(&pa_volume, change);
|
pa_cvolume_inc(&pa_volume, change);
|
||||||
}
|
}
|
||||||
} else if (dir == SCROLL_DIR::DOWN) {
|
} else if (dir == SCROLL_DIR::DOWN) {
|
||||||
|
|
Loading…
Reference in New Issue