In Rayleigh scattering a photon penetrates into a medium composed of particles whose sizes are much smaller than the wavelength of the incident photon. In this scattering process, the energy (and therefore the wavelength) of the incident photon is conserved and only its direction is changed. In this case, the scattering intensity is proportional to the fourth power of the reciprocal wavelength of the incident photon. (Emphasised by me.)
The explanation for the photon deflection is given like this:
Rayleigh scattering results from the electric polarizability of the particles. The oscillating electric field of a light wave acts on the charges within a particle, causing them to move at the same frequency.
How is it possible to check that this interaction between the surface electrons of an edge and the grazing EM radiation does not lead to a quantised deflection of the radiation?