Changed isMovedFarEnough to isValidHorizontalSwipe.