LoopScrollRect
LoopScrollRect copied to clipboard
列表在手机上用力短距离滑动速度总是快不起来,有什么办法加速吗?
有两个小技巧可以尝试下
- 调低Inertia,减缓速度衰减
- https://github.com/qiankanglai/LoopScrollRect/blob/master/Assets/Scripts/LoopScrollRectBase.cs#L1479 这里可以直接乘一个系数,譬如
Vector3 newVelocity = (m_Content.anchoredPosition - m_PrevPosition) / deltaTime * 10;
直接调大松手时候的速度