-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(430): ESC intermittently not working in Safari
There's a weird issue, probably related to Safari's `:focus-visible` behavior or their `<dialog>` implementation, where the `<dialog>` element's button doesn't receive focus when it's opened. It could also be a race condition because of the animation. Regardless, let's try listening for `Escape` at the `document` level when we zoom an image. We need to make sure we provide the `useCapture` option and get to the event first so we can intercept it and don't trigger the default `<dialog>` `Escape` behavior so we can animate zooming out.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters