Fixed hard swipe to ensur eit only ever moves one page, no matter how far you swipe.

Resolves #344
pull/413/head
Simon Jackson 2020-09-25 14:40:59 +01:00
parent 3a77711a40
commit 3427cb8442
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ namespace UnityEngine.UI.Extensions
}
}
if (UseHardSwipe) return;
CurrentPage = GetPageforPosition(_screensContainer.anchoredPosition);
//If the container is moving check if it needs to settle on a page