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

Doesn't work with OffscreenCanvas #40

Open
delarre-reve opened this issue Jul 26, 2024 · 1 comment
Open

Doesn't work with OffscreenCanvas #40

delarre-reve opened this issue Jul 26, 2024 · 1 comment

Comments

@delarre-reve
Copy link

When running pixi against an OffscreenCanvas rather than a regular Canvas (and particularly when running off the main thread entirely) the dev tools don't appear to work.

I think this is due to the Overlay functionality which is trying to measure the canvas with getBoundingClientRect and also does other DOM node creation which isn't accessible from a webworker.

Would be good to just disable this functionality when initialized with an OffscreenCanvas as a first step, but full support would also be nice though a more complicated fix.

@Zyie
Copy link
Member

Zyie commented Jul 26, 2024

ahh ok, thanks for raising this, I will take a look!

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

No branches or pull requests

2 participants