private int getIndicatorPosition(){
        if(materialScrollBar.scrollMode == MaterialScrollBar.ScrollMode.FIRST_VISIBLE) {
            return scrollPosState.rowIndex;
        } else {
            int itemCount = materialScrollBar.recyclerView.getAdapter().getItemCount();
            int itemIndex = ((int) (itemCount * materialScrollBar.currentScrollPercent));
            return itemIndex > 0 ? itemIndex - 1 : itemIndex;
        }
    }
Scrolls to the specified fraction of the RV

@param touchFraction the fraction of the RV to scroll through
@return the distance traveled by the RV in the transformation applied by this method.
+ is downward, - upward.
lib/src/main/java/com/turingtechnologies/materialscrollbar/ScrollingUtilities.java