diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua index 443f7ea2c1..9ab95a8816 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua @@ -667,6 +667,10 @@ function this:UpdateHeroUpLvAndBreakMaterialShow() if curHeroData.lv>=HeroManager.heroLvEnd[curHeroData.heroConfig.Id] then this.noUpLvText:SetActive(true) this.upLv:SetActive(false) + -- 长按升到最大级了,会无法触发抬起事件,主动调用一下 + if _isLongPress then + this._onPointerUp() + end else this.noUpLvText:SetActive(false) this.upLv:SetActive(true) @@ -939,7 +943,7 @@ function this.OnUpdate() if timer <= 0 then timer = timer + 0.1 _isLongPress = true - this:LvUpClick(false) + this:LvUpClick(false) end if Time.frameCount - oldFrame > 0 then oldFrame = Time.frameCount