Skip to content

Commit 1ba05d1

Browse files
committed
add reverse-mouse-scrolling to configure mouse wheel reverse scrolling
1 parent 7a01143 commit 1ba05d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AModule.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@ bool AModule::handleToggle(GdkEventButton* const& e) {
9999
AModule::SCROLL_DIR AModule::getScrollDir(GdkEventScroll* e) {
100100
// only affects up/down
101101
bool reverse = config_["reverse-scrolling"].asBool();
102+
bool reverse_mouse = config_["reverse-mouse-scrolling"].asBool();
102103

103104
// ignore reverse-scrolling if event comes from a mouse wheel
104105
GdkDevice* device = gdk_event_get_source_device((GdkEvent *)e);
105106
if (device != NULL && gdk_device_get_source(device) == GDK_SOURCE_MOUSE) {
106-
reverse = false;
107+
reverse = reverse_mouse;
107108
}
108109

109110
switch (e->direction) {

0 commit comments

Comments
 (0)