I want to have vertically panels in a carousel. Think group example timeline, but several of them in a carousel. I have the cards vertically scrollable and that is working, they even remember their scroll positions without any additional configuration. What would be the code to add a listener to the cardswitch event that gets the old card scroll position and applies it the new one?

This seams like a five minute code exercise for a guru which I am not.

The cards scroll to the position desired but only if a scroll is started on the new active card. Is there another listener or something I can utilize to make the card adjust its y offset value without having to physically scroll on the window?