From 5480d450a203571f59c208dda172b09a53bacb20 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 26 Jun 2022 17:10:52 +0200 Subject: [PATCH] Update imgui_logger.cpp --- r5dev/thirdparty/imgui/src/imgui_logger.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/r5dev/thirdparty/imgui/src/imgui_logger.cpp b/r5dev/thirdparty/imgui/src/imgui_logger.cpp index 87980f89..bfb1e147 100644 --- a/r5dev/thirdparty/imgui/src/imgui_logger.cpp +++ b/r5dev/thirdparty/imgui/src/imgui_logger.cpp @@ -611,13 +611,9 @@ void CTextLogger::HandleMouseInputs(bool bHoveredScrollbar, bool bActiveScrollba if (ImGui::IsMouseClicked(0) && ImGui::IsWindowHovered()) - { m_bWithinLoggingRect = true; - } - if (ImGui::IsMouseReleased(0)) - { + else if (ImGui::IsMouseReleased(0)) m_bWithinLoggingRect = false; - } if (!bHoveredScrollbar && !bActiveScrollbar && m_bWithinLoggingRect) {