From 3ad2c74519fe4631d1f7ad0c3287c9bf8b3f2d98 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 29 Apr 2024 20:43:25 +0200 Subject: [PATCH] impr: Make right click menu in data processor feel less sluggish --- plugins/builtin/source/content/views/view_data_processor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/views/view_data_processor.cpp b/plugins/builtin/source/content/views/view_data_processor.cpp index 14da4a7a5..2a2891d18 100644 --- a/plugins/builtin/source/content/views/view_data_processor.cpp +++ b/plugins/builtin/source/content/views/view_data_processor.cpp @@ -590,7 +590,7 @@ namespace hex::plugin::builtin { void ViewDataProcessor::drawContextMenus(ViewDataProcessor::Workspace &workspace) { // Handle the right click context menus - if (ImGui::IsMouseReleased(ImGuiMouseButton_Right) && ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows)) { + if (ImGui::IsMouseClicked(ImGuiMouseButton_Right, true) && ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows)) { // Clear selections ImNodes::ClearNodeSelection(); ImNodes::ClearLinkSelection();