I thought that only a water wave's speed decreased, not its wavelength, as it entered a region where the depth decreases.