From 4fc5b61676a86ec083a8103851ce583d3026339b Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Tue, 18 Jun 2024 10:28:49 -0700 Subject: [PATCH] also disable overly-ambitious cursor centering in memory view --- src/df/gfx/df_views.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/df/gfx/df_views.c b/src/df/gfx/df_views.c index 0bf73db0..123ee7c7 100644 --- a/src/df/gfx/df_views.c +++ b/src/df/gfx/df_views.c @@ -8849,7 +8849,10 @@ DF_VIEW_UI_FUNCTION_DEF(Memory) // rjf: click & drag -> select if(ui_dragging(sig) && mouse_hover_byte_num != 0) { - mv->contain_cursor = 1; + if(!contains_2f32(sig.box->rect, ui_mouse())) + { + mv->contain_cursor = 1; + } mv->cursor = mouse_hover_byte_num-1; if(ui_pressed(sig)) {