From b97d08b127a002b6cfda0851f02ae84e3b0381b8 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 16 Jan 2026 17:47:47 +0100 Subject: Added macOS make option --- tdbg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tdbg.cpp') diff --git a/tdbg.cpp b/tdbg.cpp index 2c6e9d4..572cce9 100644 --- a/tdbg.cpp +++ b/tdbg.cpp @@ -721,9 +721,10 @@ int main(int argc, char** argv) { } } else if (ev.type == TB_EVENT_MOUSE) { int main_window_height = tb_height() - LOG_WINDOW_HEIGHT - STATUS_WINDOW_HEIGHT; + + // Log window scrolling int log_start_y = main_window_height; int log_end_y = tb_height() - STATUS_WINDOW_HEIGHT; - if (ev.y >= log_start_y && ev.y < log_end_y) { if (ev.key == TB_KEY_MOUSE_WHEEL_UP) { int max_scroll = std::max(0, (int)log_buffer.size() - (LOG_WINDOW_HEIGHT - 2)); -- cgit v1.2.3