I've been having a lot of trouble with Scroll Components reseting their scroll position when you move layers in and out. In the example below note the scroll position resets to 0 every time one of the layers gets to another parent.
What's the preferred and simple way to lock the Scroll Component in place while layers are move in and out? Do I have to store scroll positions all the time?
savedPoint = scroller.scrollPoint
... Do Add or Remove...
scroller.updateContent()scroller.scrollPoint = savedPoint
That's the basic pattern I've been following. It's working pretty well.
Thanks Jordan. I've been doing that too, but wanted to confirm with the community if that was a best practice.