1
0
mirror of synced 2024-11-24 15:50:16 +01:00

Fixed hex editor selection to act weird on right click

This commit is contained in:
WerWolv 2020-11-20 11:57:40 +01:00
parent e4879f7546
commit 12a36d08e2

View File

@ -412,10 +412,10 @@ struct MemoryEditor
if (ImGui::IsMouseDoubleClicked(0)) { if (ImGui::IsMouseDoubleClicked(0)) {
DataEditingTakeFocus = true; DataEditingTakeFocus = true;
data_editing_addr_next = addr; data_editing_addr_next = addr;
} else {
DataPreviewAddr = addr;
DataPreviewAddrEnd = addr;
} }
DataPreviewAddr = addr;
DataPreviewAddrEnd = addr;
} }
if (!ReadOnly && ImGui::IsItemHovered() && ((ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyShift) || ImGui::IsMouseDragging(0))) { if (!ReadOnly && ImGui::IsItemHovered() && ((ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyShift) || ImGui::IsMouseDragging(0))) {
DataPreviewAddrEnd = addr; DataPreviewAddrEnd = addr;
@ -472,10 +472,11 @@ struct MemoryEditor
if (ImGui::IsMouseDoubleClicked(0)) { if (ImGui::IsMouseDoubleClicked(0)) {
DataEditingTakeFocus = true; DataEditingTakeFocus = true;
data_editing_addr_next = addr; data_editing_addr_next = addr;
} else {
DataPreviewAddr = addr;
DataPreviewAddrEnd = addr;
} }
DataPreviewAddr = addr;
DataPreviewAddrEnd = addr;
} }
if (!ReadOnly && ImGui::IsItemHovered() && ((ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyShift) || ImGui::IsMouseDragging(0))) { if (!ReadOnly && ImGui::IsItemHovered() && ((ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyShift) || ImGui::IsMouseDragging(0))) {
DataPreviewAddrEnd = addr; DataPreviewAddrEnd = addr;