1
0
mirror of synced 2025-01-18 09:04:52 +01:00

impr: Make right click menu in data processor feel less sluggish

This commit is contained in:
WerWolv 2024-04-29 20:43:25 +02:00
parent 0e58204501
commit 3ad2c74519

View File

@ -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();