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: persist focus when switching tabs #2301

Merged
merged 1 commit into from May 23, 2024

Conversation

mgreminger
Copy link
Contributor

For the callbacks related to persisting focus when switching tabs, this pull request changes from a timeout based approach to cancel the callbacks to a method that looks for change in focus. The timeout based method was not working on Chrome and Firefox in Windows. The new approach still ensures that only the most recent math-field element will have a visibilitychange callback associated with it.

For the callbacks related to persisting focus when switching tabs, switched from a timeout based approach to cancel the callbacks to a method that looks for change in focus. The timeout based method was not working on Chrome and Firefox in Windows. The new approach still ensures that only the most recent math-field element will have a `visibilitychange` callback associated with it.
mgreminger added a commit to mgreminger/EngineeringPaper.xyz that referenced this pull request Feb 24, 2024
Need to use a fork of mathlive with this fix until arnog/mathlive#2301 is merged
@arnog arnog merged commit dbf5476 into arnog:master May 23, 2024
2 checks passed
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.

None yet

2 participants