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