For some UI elements closing behavior should be built in. A modal closes on `ESC...

@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.

developer.mozilla.org/en-US/do