calculateIndicatorOffset
Calculates the offset position of the scrollbar indicator (thumb) within the scrollbar track. This offset helps to position the indicator correctly based on the scrollbar's and indicator's lengths.
Return
The calculated offset of the indicator within the scrollbar.
Parameters
scrollbarLength
The total length of the scrollbar's track.
indicatorLength
The length of the scrollbar's indicator (thumb).