Handling depth loop for now (3d cursor positioning). Selection is a bit more tricky. Reported on 51354