Can someone explain the ScrollBar range system?

I did read the documentation, and I thought I understand how to use it. But when setting a range limit using setRangeLimits(), I do not get these values form the getCurrentRangeStart() function when moving the bar.
There was a question on this forum a few years ago that may address the same issue, but I do not understand the answer.