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

Mobile Screen Resolution #4

Open
cesutherland opened this issue Apr 2, 2012 · 1 comment
Open

Mobile Screen Resolution #4

cesutherland opened this issue Apr 2, 2012 · 1 comment

Comments

@cesutherland
Copy link
Member

CSS currently supports device viewport resolution but the canvas element should render respecting the screen resolution. Use screen.width and screen.height to get the proper resolution.

@cesutherland
Copy link
Member Author

Resolution in flotr2 has been patched. We want to use window.devicePixelRatio as the resolution.

This will cause a performance hot spot in flotr where the context is scaled. We should scale the context once, then cache it as we do the canvas element.

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

No branches or pull requests

1 participant