Browse Source

Add forward-compatible min version test for mouse scroll

master
cancel 6 years ago
parent
commit
cb237dbde9
  1. 2
      tui_main.c

2
tui_main.c

@ -1203,7 +1203,7 @@ void ged_mouse_event(Ged* a, Usz vis_y, Usz vis_x, mmask_t mouse_bstate) {
}
}
}
#if NCURSES_MOUSE_VERSION != 1
#if defined(NCURSES_MOUSE_VERSION) && NCURSES_MOUSE_VERSION >= 2
else {
if (mouse_bstate & BUTTON4_PRESSED) {
a->grid_scroll_y -= 1;

Loading…
Cancel
Save