mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix regression from #2232: reverse-scrolling was not applied to
GTK_SCROLL_SMOOTH events
This commit is contained in:
parent
b9cd0287f4
commit
35496f461f
@ -121,9 +121,9 @@ AModule::SCROLL_DIR AModule::getScrollDir(GdkEventScroll* e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (distance_scrolled_y_ < -threshold) {
|
if (distance_scrolled_y_ < -threshold) {
|
||||||
dir = SCROLL_DIR::UP;
|
dir = reverse ? SCROLL_DIR::DOWN : SCROLL_DIR::UP;
|
||||||
} else if (distance_scrolled_y_ > threshold) {
|
} else if (distance_scrolled_y_ > threshold) {
|
||||||
dir = SCROLL_DIR::DOWN;
|
dir = reverse ? SCROLL_DIR::UP : SCROLL_DIR::DOWN;
|
||||||
} else if (distance_scrolled_x_ > threshold) {
|
} else if (distance_scrolled_x_ > threshold) {
|
||||||
dir = SCROLL_DIR::RIGHT;
|
dir = SCROLL_DIR::RIGHT;
|
||||||
} else if (distance_scrolled_x_ < -threshold) {
|
} else if (distance_scrolled_x_ < -threshold) {
|
||||||
|
Loading…
Reference in New Issue
Block a user