private void checkStartScroll(float x, float y) {
		/*
		 * Locally do absolute value. mLastMotionX is set to the y value of the
		 * down event.
		 */
		final int xDiff = (int) Math.abs(x - mLastMotionX);
		final int yDiff = (int) Math.abs(y - mLastMotionY);

		boolean xMoved = xDiff > mTouchSlop;
		boolean yMoved = yDiff > mTouchSlop;

		if (xMoved || yMoved) {

			if (yMoved) {
				// Scroll if the user moved far enough along the X axis
				mTouchState = TOUCH_STATE_SCROLLING;
				enableChildrenCache();
			}
			// Either way, cancel any pending longpress
			if (mAllowLongPress) {
				mAllowLongPress = false;
				// Try canceling the long press. It could also have been
				// scheduled
				// by a distant descendant, so use the mAllowLongPress flag to
				// block
				// everything
				final View currentScreen = getChildAt(mCurrentPage);
				currentScreen.cancelLongPress();
			}
		}
	}
@return true - if pages switching enabled, false - otherwise.
app/src/main/java/pro/alexzaitsev/freepager/library/view/core/VerticalPager.java