What makes the pre-slit photon detector act differently than air in a which way double slit experiment? Using photons for the double-slit experiment doesn't require a vacuum, therefore the photon's wave function either doesn't collapse upon absorption or it's regained upon emission when interacting with air.  I don't know of any way the detector that's in front of the slits could observe the photon unless it is through absorption, and to make it to the other side, it has to be re-emitted.
In either case, if we put a detector in front of the slits, it comes out of the detector as a particle, its wave function having collapsed.  So what makes the detector act differently than air?
 A: When a photon interacts with an air molecule, it doesn't lose its coherence - that is, while there is some phase shift of the wave function as a result of interaction with the electrons of the molecule, the wave remains a wave. If it actually gets absorbed and re-emitted, the coherence would be lost; in that case you would lose the fringes (the direction of the emitted photon would no longer be the same as the direction of the incident photon).
A: When a photon interacts with an atom, three things can happen:


*

*elastic scattering, the photon keeps its energy and phase and changes angle

*inelastic scattering, the photon gives part of its energy to the atom, and changes angle

*absorption, the photon gives all its energy to the atom and the absorbing electron moves to a higher energy level as per QM
In the case of the detector, it is absorption. The photon seizes to exist. It transforms into the kinetic energy of the electron.
In the case of air, the air's atoms scatter the photons elastically. It is Rayleigh scattering, that is why the sky is blue. In this case, the wavelength of the photons is much bigger then the scattering atoms. This is the only way that the energy and phase of the photons is kept, and you can see images of objects through air without bigger distortions. It is a coherent (specular) way of refraction. In optics, we use the expressions coherent and diffuse (decoherent) for reflection and refraction. In the case of refraction, like through air, this (coherent) means that that not only is the energy and phase of the individual photons kept, but the relative phases of the photons' too. This is the only way that the image we see through air keeps coherent.
Now you edited your question to talk about the detector in front of the slits. That is called the which way experiment. In that case, there is a detector in front of one of the slits. That is inelastic scattering, and that will cause that photon not to create an interference pattern.
So basically when the photon is elastically scattered through air, it will still create an interference pattern, because in elastic scattering, the energy and phase is kept.
When there is a detector in front of the slit, that is inelastic scattering, and in that case that photon does not create an interference pattern, because the photon gives part of its energy to the scattering atom, and changes phase.
