I started my implementation and have a quick question. I've calculated the position of each of my pages as a percentage of the draggable panel size.
I have something like this:
float scrollAmount = desiredChildNumber/totalNumberOfChildren;
scrollBar.scrollValue = scrollAmount; // scrollbar is set to a UIScrollbar component
This works great to reposition my draggable panel on the desired child transform. What I want to do is LERP the UIScrollbar.scrollValue so that the transition to the next position is done smoothly.
Could you provide an example of how this would be done?
Thanks again!