Fix selection in top-down orthographic view

This is a forward port of #694