HorizontalScrollSnap.cs updated to match VerticalScrollSnap - Resolves #213
parent
2c802d9271
commit
4d913f33a8
|
@ -49,7 +49,7 @@ namespace UnityEngine.UI.Extensions
|
||||||
//If the container is moving check if it needs to settle on a page
|
//If the container is moving check if it needs to settle on a page
|
||||||
if (!_pointerDown)
|
if (!_pointerDown)
|
||||||
{
|
{
|
||||||
if (_scroll_rect.velocity.x > 0.01 || _scroll_rect.velocity.x < 0.01)
|
if (_scroll_rect.velocity.x > 0.01 || _scroll_rect.velocity.x < -0.01)
|
||||||
{
|
{
|
||||||
//if the pointer is released and is moving slower than the threshold, then just land on a page
|
//if the pointer is released and is moving slower than the threshold, then just land on a page
|
||||||
if (IsRectMovingSlowerThanThreshold(0))
|
if (IsRectMovingSlowerThanThreshold(0))
|
||||||
|
|
Loading…
Reference in New Issue