mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-24 09:40:53 +00:00
Check if mouse is over the window before acting on mouse click.
This commit is contained in:
@@ -141,7 +141,7 @@ bool TracyLlmChat::Turn( TurnRole role, const nlohmann::json& json, Think think,
|
||||
{
|
||||
const auto& trash = roles[trashIdx];
|
||||
ImGui::TextColored( trash.iconColor, "%s", trash.icon );
|
||||
if( IsMouseClicked( ImGuiMouseButton_Left ) ) keep = false;
|
||||
if( IsMouseClicked( ImGuiMouseButton_Left ) && ImGui::IsWindowHovered() ) keep = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user