diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 87f8275c7..2ba5abd21 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -968,13 +968,13 @@ void NCursesUI::set_ui_options(const Options& options) enable_mouse_it->value == "yes" or enable_mouse_it->value == "true"); - auto wheel_down_it = options.find("ncurses_wheel_down_button"); - m_wheel_down_button = wheel_down_it != options.end() ? - str_to_int_ifp(wheel_down_it->value).value_or(2) : 2; - auto wheel_up_it = options.find("ncurses_wheel_up_button"); m_wheel_up_button = wheel_up_it != options.end() ? str_to_int_ifp(wheel_up_it->value).value_or(4) : 4; + + auto wheel_down_it = options.find("ncurses_wheel_down_button"); + m_wheel_down_button = wheel_down_it != options.end() ? + str_to_int_ifp(wheel_down_it->value).value_or(5) : 5; } } diff --git a/src/ncurses_ui.hh b/src/ncurses_ui.hh index 3663f6497..997bb4695 100644 --- a/src/ncurses_ui.hh +++ b/src/ncurses_ui.hh @@ -114,8 +114,8 @@ private: void enable_mouse(bool enabled); bool m_mouse_enabled = false; - int m_wheel_down_button = 2; int m_wheel_up_button = 4; + int m_wheel_down_button = 5; bool m_set_title = true;