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

Update devicePixelRatio on resize? #1237

Closed
Yomguithereal opened this issue Apr 29, 2022 · 0 comments
Closed

Update devicePixelRatio on resize? #1237

Yomguithereal opened this issue Apr 29, 2022 · 0 comments
Labels

Comments

@Yomguithereal
Copy link
Collaborator

It seems that in some scenarios (notably, UI zoom, safari fullscreen implementation etc.) the devicePixelRatio of the browser can change while a page is running. In sigma, the devicePixelRatio is captured as a constant here. Maybe we want to update it on resize (which is called before each actual render, if I remember correctly).

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

No branches or pull requests

2 participants