HorizontalScrollSnap.cs updated to match VerticalScrollSnap - Resolves #213

pull/413/head
Simon Jackson 2018-02-19 15:23:38 +00:00
parent 2c802d9271
commit 4d913f33a8
1 changed files with 1 additions and 1 deletions

View File

@ -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))