From 57151f25d2822003c892a52c9576daf86cb8bca9 Mon Sep 17 00:00:00 2001 From: Nanako <469449812@qq.com> Date: Wed, 17 Jul 2024 20:28:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=8C=E5=87=BB=E5=9E=82?= =?UTF-8?q?=E7=9B=B4=E9=9F=B3=E9=87=8F=E6=BB=91=E5=8A=A8=E6=9D=A1=E6=97=B6?= =?UTF-8?q?=E6=89=80=E6=9C=89=E9=9F=B3=E9=87=8F=E9=83=BD=E4=BC=9A=E8=A2=AB?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Arona/src/widget/widgets.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Arona/src/widget/widgets.cpp b/Arona/src/widget/widgets.cpp index 86d8a23..7f8625d 100644 --- a/Arona/src/widget/widgets.cpp +++ b/Arona/src/widget/widgets.cpp @@ -258,11 +258,10 @@ bool vertical_volume_slider(const char* id, ImVec2 size, float* volume, float mi ImGui::BeginTooltip(); ImGui::Text("Volume: %.3fdb", 20.0f * log10f(*volume)); ImGui::EndTooltip(); - } - - if (ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) { - *volume = 1.0f; - return true; + if (ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) { + *volume = 1.0f; + return true; + } } static float drag_start_value = 0.0f;