[Opt] 优化虚拟列表 Snap吸附问题

This commit is contained in:
陈思海 2026-04-29 18:12:56 +08:00
parent 4340f2f4a7
commit 0482f505a6

View File

@ -106,8 +106,6 @@ namespace AlicizaX.UI
set => draggingEvent = value; set => draggingEvent = value;
} }
public float dragStopTime = 0f;
public bool InputEnabled { get; set; } = true; public bool InputEnabled { get; set; } = true;
protected virtual void Awake() protected virtual void Awake()
@ -216,8 +214,6 @@ namespace AlicizaX.UI
return; return;
} }
dragStopTime = Time.time;
velocity = GetDelta(eventData); velocity = GetDelta(eventData);
position += velocity; position += velocity;