Skip to content

Commit

Permalink
Merge pull request #2760 from avannereau/wireplumber-scroll-fix
Browse files Browse the repository at this point in the history
Fix wireplumber reverse-scroll option
  • Loading branch information
Alexays authored Dec 22, 2023
2 parents 08361be + 49caab4 commit d2767fb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/modules/wireplumber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,6 @@ bool waybar::modules::Wireplumber::handleScroll(GdkEventScroll* e) {
if (dir == SCROLL_DIR::NONE) {
return true;
}
if (config_["reverse-scrolling"].asInt() == 1) {
if (dir == SCROLL_DIR::UP) {
dir = SCROLL_DIR::DOWN;
} else if (dir == SCROLL_DIR::DOWN) {
dir = SCROLL_DIR::UP;
}
}
double max_volume = 1;
double step = 1.0 / 100.0;
if (config_["scroll-step"].isDouble()) {
Expand Down

0 comments on commit d2767fb

Please sign in to comment.