For some UI elements closing behavior should be built in. A modal closes on `ESC...
Stefan Judis @stefan@front-end.social
For some UI elements closing behavior should be built in. A modal closes on `ESC`, but on mobile a native gesture (e.g. Android's swipe) can jump the browser back into history. How do you catch these? That's what `CloseWatcher` is for.
https://developer.mozilla.org/en-US/docs/Web/API/CloseWatcher