Programmatically changing StackPanel scroll position

I have a scrollViewer. I would like to change it’s scroll position. I thought someone had mentioned how to do this on the forum but I can’t find it.

If needed, here’s a playground to demo it in:

Hope you are well.
I believe you are looking for the ‘value’ of the ‘verticalBar’, yes? Something like this?


Brilliant. That’s it! Thanks @mawa. And yes I can see that in the docs now. I should have checked there more thoroughly: Scroll Viewer | Babylon.js Documentation

1 Like