public float getCurrentPercent() {
        final float currentPercent = mHeaderHeight == 0 ? 0 : mCurrentPos * 1f / mHeaderHeight;
        return currentPercent;
    }
Update current position before update the UI
ptr-lib/src/in/srain/cube/views/ptr/indicator/PtrIndicator.java