Commit 261f2d95 authored by Oleg Korshul's avatar Oleg Korshul

android retina bug

parent ef3cd715
...@@ -114,7 +114,10 @@ AscBrowser.zoom = 1; ...@@ -114,7 +114,10 @@ AscBrowser.zoom = 1;
AscBrowser.checkZoom = function() AscBrowser.checkZoom = function()
{ {
if (AscBrowser.isAndroid) if (AscBrowser.isAndroid)
return; {
AscBrowser.isRetina = (Math.abs(2 - (window.devicePixelRatio / AscBrowser.zoom)) < 0.01);
return;
}
AscBrowser.zoom = 1.0; AscBrowser.zoom = 1.0;
AscBrowser.isRetina = false; AscBrowser.isRetina = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment