Merged in fix/hardswipe (pull request #93)

Fixed hard swipe to ensure it only ever moves one page, no matter how far you swipe.
pull/413/head
Simon Jackson 2020-09-25 15:02:57 +00:00
commit 4a3b85a3db
2 changed files with 4 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

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