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

Relying on window.devicePixelRatio causing issues when browser is zoomed #67

Open
cfx1 opened this issue May 16, 2015 · 0 comments
Open

Comments

@cfx1
Copy link

cfx1 commented May 16, 2015

Tested on Firefox 38 and Chrome 42.0.2311.152 with Tinycon 0.6.3

If the page utilizing Tinycon is zoomed in (eg. Ctrl +), Tinycon's use of window.devicePixelRatio will cause the text to be drawn off-center depending on the level of zoom. Apparently using window.devicePixelRatio is not reliable because it is directly affected by the zoom level of the browser, which can change from user to user.

Firefox discussion: https://bugzilla.mozilla.org/show_bug.cgi?id=809788
Stackoverflow discussion: http://stackoverflow.com/questions/16541676/what-are-best-practices-for-detecting-pixel-ratio-density

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

1 participant