I have a navigation system that includes multiple elements. I've set 'auto' for the perView option. When the URL changes, I would like the slider to move to the current element in the navigation. I'm not sure how to do this because moveToIdx takes the index of the given slide, but currently I have several elements fitting on one slide. The moveToIdx function with the absolute parameter is not working for me. Is there a way to scroll the element but to the index of the element from the array that was passed?
I have a navigation system that includes multiple elements. I've set 'auto' for the perView option. When the URL changes, I would like the slider to move to the current element in the navigation. I'm not sure how to do this because moveToIdx takes the index of the given slide, but currently I have several elements fitting on one slide. The moveToIdx function with the absolute parameter is not working for me. Is there a way to scroll the element but to the index of the element from the array that was passed?