From ad85a4a0e35979a98f4e720ce7d63e488610412b Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 18 Dec 2022 13:27:28 +0100 Subject: [PATCH] fix: Hopefully fix the hex editor position jumping around after search --- plugins/builtin/source/ui/hex_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/ui/hex_editor.cpp b/plugins/builtin/source/ui/hex_editor.cpp index ec5dda7c2..e040fcb77 100644 --- a/plugins/builtin/source/ui/hex_editor.cpp +++ b/plugins/builtin/source/ui/hex_editor.cpp @@ -777,7 +777,7 @@ namespace hex::plugin::builtin::ui { this->setSelection(selectionStart.value_or(address), endAddress); this->scrollToSelection(); } - else if (ImGui::IsMouseDown(ImGuiMouseButton_Left)) { + else if (ImGui::IsMouseClicked(ImGuiMouseButton_Left)) { if (ImGui::GetIO().KeyShift) this->setSelection(selectionStart.value_or(address), endAddress); else