[Opt] 优化虚拟列表 Snap吸附问题
This commit is contained in:
parent
4340f2f4a7
commit
0482f505a6
@ -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()
|
||||||
@ -215,9 +213,7 @@ namespace AlicizaX.UI
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
dragStopTime = Time.time;
|
|
||||||
|
|
||||||
velocity = GetDelta(eventData);
|
velocity = GetDelta(eventData);
|
||||||
position += velocity;
|
position += velocity;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user