From cb653cf75b17b9bdca0b5b9e6b88edf1ca72e90c Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 17 十月 2025 09:54:11 +0800
Subject: [PATCH] 0312 删除旧的日常代码3
---
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