public boolean canScrollHorizontally(int direction) {
        if (mAdapter == null) {
            return false;
        }

        final int width = getClientWidth();
        final int scrollX = getScrollX();
        if (direction < 0) {
            return (scrollX > (int) (width * mFirstOffset));
        } else if (direction > 0) {
            return (scrollX < (int) (width * mLastOffset));
        } else {
            return false;
        }
    }
Returns true if a fake drag is in progress.

@return true if currently in a fake drag, false otherwise.

@see #beginFakeDrag()
@see #fakeDragBy(float)
@see #endFakeDrag()
library/src/main/java/com/daimajia/slider/library/Tricks/ViewPagerEx.java