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

Incorrect browser zoom under MSIE9 and zoom set to 105% or 110% #17

Open
jkronegg opened this issue Nov 20, 2012 · 0 comments
Open

Incorrect browser zoom under MSIE9 and zoom set to 105% or 110% #17

jkronegg opened this issue Nov 20, 2012 · 0 comments

Comments

@jkronegg
Copy link

When setting the zoom value to 105% or 110% under MSIE9, detect-zoom will give a value of 1.04... and 1.09... respectively. The expected values are 1.05 and 1.1 respectively.

In order to correct these values, I suggest to replace line 59:

var zoom = screen.deviceXDPI / screen.logicalXDPI;

by:

var zoom = Math.floor(screen.deviceXDPI*100 / screen.logicalXDPI + 0.9) / 100;
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