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

Canvas drawing disappears when tab loses focus for too long #1

Open
2 tasks
KCarlile opened this issue May 19, 2024 · 1 comment
Open
2 tasks

Canvas drawing disappears when tab loses focus for too long #1

KCarlile opened this issue May 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@KCarlile
Copy link
Owner

KCarlile commented May 19, 2024

Background

The drawing will disappear from the canvas if a tab is left without focus for too long. This could be related to Chrome dumping memory for that tab, but the rest of the page remains fine, so it's not like what I've seen with YouTube pages sitting for too long when Chrome dumps the memory for them. In that case, the entire page refreshes upon re-focus.

Acceptance Criteria

  • The cause of the disappearing drawing is determined
  • A workaround, fix, or documentation solution is determined and implemented

Approach

  • TBD

Notes

TBD

@KCarlile KCarlile added the bug Something isn't working label May 19, 2024
@KCarlile KCarlile self-assigned this May 19, 2024
@KCarlile
Copy link
Owner Author

KCarlile commented May 24, 2024

I noticed that there were some canvas.beginPath(); calls without a closing canvas.closePath(); call. I've now closed all of those and it seems like the canvas disappearing issue may be resolved. Those changes are in commit 02586d2.

Shoot, this issue is still happening. 😐

@KCarlile KCarlile removed their assignment Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant