[x] I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers. (thanks @jparez)
[ ] I have made corresponding changes to the documentation (README.md).
[x] I've checked my modifications for any breaking changes.
Description
Following a suggestion from @jparez , this small PR simplifies the detecting when a click outside the overlay is done.
Type of change
Checklist