Newbie's question: 👉How to use a scroll bar to control a number?

I know the new feature scroll bar which I can create a scroll bar component and link it to the scroll contents and show the content’s position. That is cool (in last year).

But, how can I use scroll bar to control a number?

I think its a very common requirement. Demos those I found many in the Marketplace are not use the new scroll feature.

I just want to know the best practice(most simple way) of creating a scroll bar and bind a number. Thanks.