Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlay: Allows to detect an overlay actively being closed by the user #1076

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

sabieber
Copy link
Member

@sabieber sabieber commented Aug 3, 2022

We trigger the sci-overlay-destroyed in the following scenarios:

  • Overlay closed via x button
  • Overlay closed via background click
  • Overlay closed via ESC key
  • Overlay closed as new one was opened

The last one of these is the only one that is not triggered by the user actively trying to close the overlay but can also occur when the currently open overlay triggers a new overlay that replaces the old one.

To differentiate these we now trigger a new event sci-overlay-dismissed in those 3 cases where the user tries to close the overlay.

Fixes: OX-8917

We trigger the `sci-overlay-destroyed` in the following scenarios:
- Overlay closed via x button
- Overlay closed via background click
- Overlay closed via ESC key
- Overlay closed as new one was opened

The last one of these is the only one that is not triggered by the user actively trying to close the overlay but can also occur when the currently open overlay triggers a new overlay that replaces the old one.

To differentiate these we now trigger a new event `sci-overlay-dismissed` in those 3 cases where the user tries to close the overlay.

Fixes: OX-8917
@sabieber sabieber added 🧬 Enhancement Contains new features 👶🏻 Trivial Easy to review labels Aug 3, 2022
@sabieber sabieber marked this pull request as ready for review August 3, 2022 07:39
@sabieber sabieber merged commit 62f95fe into develop Aug 3, 2022
@sabieber sabieber deleted the feature/sbi/OX-8917 branch August 3, 2022 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧬 Enhancement Contains new features 👶🏻 Trivial Easy to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants