We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99c512d commit f90dc6aCopy full SHA for f90dc6a
src/AModule.cpp
@@ -100,6 +100,12 @@ AModule::SCROLL_DIR AModule::getScrollDir(GdkEventScroll* e) {
100
// only affects up/down
101
bool reverse = config_["reverse-scrolling"].asBool();
102
103
+ // ignore reverse-scrolling if event comes from a mouse wheel
104
+ GdkDevice* device = gdk_event_get_source_device((GdkEvent *)e);
105
+ if (device != NULL && gdk_device_get_source(device) == GDK_SOURCE_MOUSE) {
106
+ reverse = false;
107
+ }
108
+
109
switch (e->direction) {
110
case GDK_SCROLL_UP:
111
return reverse ? SCROLL_DIR::DOWN : SCROLL_DIR::UP;
0 commit comments