idoros / zeejs

Layering in HTML
MIT License
7 stars 0 forks source link

fix: click-outside for layer that was created while clicking #71

Closed idoros closed 2 years ago

idoros commented 2 years ago

Creating a layer during pointerdown, for example when a layer is rendered via focus, might be catched as clicked-outside of when the mouse is up again.

This PR ignores click-outside for layers that are created between pointerdown and click.