fix(eventsystem): 修复锁定时松手未清理导致光标卡住

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-21 01:16:57 +08:00
co-authored by Cursor
parent 164e3dd50e
commit dc0488f085
2 changed files with 58 additions and 20 deletions
@@ -90,6 +90,20 @@ namespace AibisDream.Framework
#endregion
/// <summary>
/// 兜底:鼠标左键已抬起时强制清空 holding/dragging。
/// 防止 EventTrigger 在 isLocked 时跳过 Up/EndDrag 清理后光标一直停在抓取。
/// </summary>
private void LateUpdate()
{
if (Input.GetMouseButton(0)) return;
if (holdingObjList.Count > 0)
holdingObjList.Clear();
if (draggingObjList.Count > 0)
draggingObjList.Clear();
}
private void HandleDialogueComplete()
{
isLocked = false;