Added an rectangle over the sim to capture events outside of the popup dialog.