ref: 334c871b4675fd1ef98ecfc0acfcea540961a33a
parent: 8090768284e4a03e7fe84101c2be31b6844a57a5
author: cancel <cancel@cancel.fm>
date: Tue Dec 11 20:44:02 EST 2018
Add mousewheel scroll support
--- a/tui_main.c
+++ b/tui_main.c
@@ -1190,6 +1190,14 @@
a->is_draw_dirty = true;
}
}
+ } else {
+ if (mouse_bstate & BUTTON4_PRESSED) {
+ a->grid_scroll_y -= 1;
+ a->is_draw_dirty = true;
+ } else if (mouse_bstate & BUTTON5_PRESSED) {
+ a->grid_scroll_y += 1;
+ a->is_draw_dirty = true;
+ }
}
}