Fixes #3 Events not triggered when popups are open