Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Scroll carousel to the 1st image upon Load
posted

I'm trying to get the carousel upon load to scroll the item (record index: 0) to be the centere'd item.

Upon click of an item, we use the ScrollInfo.SetVerticalOffset(recID - 3) - 3 is the magic number off to the left and right when we are using a ItemPerPage = 7.

 

ex:   x   x   x   X   x   x   x    upon load...should be like this:   -   -   -   X   x   x   x  (- is an empty space)

 

for whatever reason, when I click on one, it works to scroll it to the center, but when I click the far left one (aka the first item in the carousel), it will scroll to the center, however I have to send over -3 for that to happen.  But when I try to do this upon load, it doesn't do that, it scrolls it to 0. 

I have scroll item to center position =  true set.  Removing this however doesn't fix the problem.