diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-22 12:36:50 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-22 12:36:50 -0500 |
commit | 1631f38d4dba64577c8f064225599273148ad83d (patch) | |
tree | 740747615e12e0d45681875cdb2e2d4f9f681e77 /buffer.c | |
parent | 37ce64c167e12c0d652442b2ff3deb9327d1317d (diff) |
go to definition menu
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2124,7 +2124,7 @@ void buffer_render(TextBuffer *buffer, Rect r) { buffer->center_cursor_next_frame = false; } - if (rect_contains_point(rect4(x1, y1, x2, y2), ted->mouse_pos)) { + if (rect_contains_point(rect4(x1, y1, x2, y2), ted->mouse_pos) && !ted->menu) { // scroll with mouse wheel double scroll_speed = 2.5; buffer_scroll(buffer, ted->scroll_total_x * scroll_speed, ted->scroll_total_y * scroll_speed); |