The grating is moving diagonally down and right.
But because of the rectangular aperture, your brain perceives the motion as straight DOWN.