From 6bcbcf0494eceb60e2754c966d66bd531c5be2a9 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 30 九月 2025 18:13:25 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 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