fix(eventsystem): 修复锁定时松手未清理导致光标卡住
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user