int getAvailableScrollHeight() {
        int visibleHeight = materialScrollBar.recyclerView.getHeight();
        int scrollHeight;
        if(customScroller != null) {
            scrollHeight = materialScrollBar.recyclerView.getPaddingTop() + customScroller.getTotalDepth() + materialScrollBar.recyclerView.getPaddingBottom();
        } else {
            scrollHeight = materialScrollBar.recyclerView.getPaddingTop() + getRowCount() * scrollPosState.rowHeight + materialScrollBar.recyclerView.getPaddingBottom();
        }
        return scrollHeight - visibleHeight;
    }
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