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

fix: [#2409] engine 'visible' event not firing #2412

Merged
merged 3 commits into from
Jul 15, 2022

Conversation

mattjennings
Copy link
Contributor

Fixes engine.on('visible') not firing by using document.visibilityState API to determine current state

===:clipboard: PR Checklist :clipboard:===

  • 📌 issue exists in github for these changes
  • 🔬 existing tests still pass
  • 🙈 code conforms to the style guide
  • 📐 new tests written and passing / old tests updated with new scenario(s)
  • 📄 changelog entry added (or not needed)

==================

Closes #2409

Changes:

  • Fixed engine.on('visible') event not firing

Copy link
Member

@eonarheim eonarheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattjennings Looks great!

Just needs some lint clean up

npm run eslint -- --fix && npm run eslint:spec -- --fix

@mattjennings
Copy link
Contributor Author

oops! should be good now

@eonarheim eonarheim merged commit 0de07d9 into excaliburjs:main Jul 15, 2022
@eonarheim
Copy link
Member

@mattjennings Thanks again for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Engine VisibleEvent is not firing on visibility change
2 participants