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
commit
4a3b85a3db
|
@ -45,6 +45,8 @@ namespace UnityEngine.UI.Extensions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (UseHardSwipe) return;
|
||||||
|
|
||||||
CurrentPage = GetPageforPosition(_screensContainer.anchoredPosition);
|
CurrentPage = GetPageforPosition(_screensContainer.anchoredPosition);
|
||||||
|
|
||||||
//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
|
||||||
|
|
|
@ -45,6 +45,8 @@ namespace UnityEngine.UI.Extensions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (UseHardSwipe) return;
|
||||||
|
|
||||||
CurrentPage = GetPageforPosition(_screensContainer.anchoredPosition);
|
CurrentPage = GetPageforPosition(_screensContainer.anchoredPosition);
|
||||||
|
|
||||||
//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
|
||||||
|
|
Loading…
Reference in New Issue