|
@ -84,8 +84,8 @@ void Application::ProcessEvents() { |
|
|
for (auto& node : nodes) { |
|
|
for (auto& node : nodes) { |
|
|
if (node->pos_x < x and x < node->pos_x + node->Width() |
|
|
if (node->pos_x < x and x < node->pos_x + node->Width() |
|
|
and node->pos_y < y and y < node->pos_y + node->Height()) { |
|
|
and node->pos_y < y and y < node->pos_y + node->Height()) { |
|
|
selected_node = node.get(); |
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
selected_node = node.get(); |
|
|
|
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|