Fix wireplumber reverse-scroll option

This commit is contained in:
Alan Vannereau 2023-12-22 11:50:41 +01:00
parent 08361be9f0
commit 49caab47a6
1 changed files with 0 additions and 7 deletions

View File

@ -317,13 +317,6 @@ bool waybar::modules::Wireplumber::handleScroll(GdkEventScroll* e) {
if (dir == SCROLL_DIR::NONE) { if (dir == SCROLL_DIR::NONE) {
return true; 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 max_volume = 1;
double step = 1.0 / 100.0; double step = 1.0 / 100.0;
if (config_["scroll-step"].isDouble()) { if (config_["scroll-step"].isDouble()) {