To reproduce:
- Create a frame of size X by Y
- Create a rect of the same size and place it inside the frame at (0, 0)
- Click outside the frame to clear selection
- Click the rect
Expected behavior: rect is selected.
Actual behavior: frame is selected.
If the rect is not the same width and height as the frame, it works correctly.