@Override
		public boolean onScroll(MotionEvent e1, MotionEvent e2,
				float distanceX, float distanceY) {
			return Math.abs(distanceX) > Math.abs(distanceY);
		}
@return true - if we're scrolling in X direction, false - in Y
        direction.
app/src/main/java/pro/alexzaitsev/freepager/library/view/core/SmartViewPager.java