public void disableWhenHorizontalMove(boolean disable) {
        mDisableWhenHorizontalMove = disable;
    }
It's useful when working with viewpager.

@param disable
ptr-lib/src/in/srain/cube/views/ptr/PtrFrameLayout.java