From 76d7d05a6c20dc73cd687cba20696fa4e02ec6fe Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 05 十一月 2025 10:59:42 +0800
Subject: [PATCH] 0312 淘金未开启相关按钮隐藏

---
 Main/Component/UI/Common/LongPressButton.cs |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/Main/Component/UI/Common/LongPressButton.cs b/Main/Component/UI/Common/LongPressButton.cs
index 3cb9cf1..d5ce059 100644
--- a/Main/Component/UI/Common/LongPressButton.cs
+++ b/Main/Component/UI/Common/LongPressButton.cs
@@ -75,6 +75,13 @@
     {
         if (m_IsButtonDown)
         {
+            if (!this.interactable || !this.IsActive() || !this.enabled)
+            { 
+                // 濡傛灉鎸夐挳涓嶅彲鐢紝鍒欏彇娑堥暱鎸夌姸鎬�
+                m_IsButtonDown = false;
+                m_LongPress = false;
+                return;
+            }
             m_PressTime += Time.deltaTime;
             if (m_PressTime < m_LongPressCheckTime)
             {

--
Gitblit v1.8.0