Use the VR interaction on ScrollViewer

Hi there, I have a question, How Can I use the Vr interaction on scrollViewer?
A code here : https://www.babylonjs-playground.com/#3EF49E#18.
Because I want to use only in first time my gaze to interact with the scrollBar, but I don’t know what is the object I have to interact with. I search on the github but I find verticalBar but I don’t know how to make it move.

Thank you ! :slight_smile:

Hi Mathieu,

ScrollViewer.verticalBar has a “value” parameter that controls where the scroller is. Legal values seem to be between 0 (the beginning) and 1 (the end), so it seems that you can set that variable directly to manipulate the viewer’s scrolling behavior. Will that work for your scenario?

1 Like

Hi syntheticmagnus, I will try, thank you for the answer !!

I did that : https://www.babylonjs-playground.com/#3EF49E#19

Thank you !!

2 Likes