Click the center of the first non-empty rectangle

Fixes #481.