|
|
@ -1115,14 +1115,15 @@ function _initZoomCheck() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var ratio = Math.round(window.devicePixelRatio * 100);
|
|
|
|
var ratio = Math.round(window.devicePixelRatio * 100);
|
|
|
|
// A value of 1 indicates a classic 96 DPI (76 DPI on some platforms) display, while a value of 2 is expected for HiDPI/Retina displays
|
|
|
|
// A value of 1 indicates a classic 96 DPI (76 DPI on some platforms) display, while a value of 2 is expected for HiDPI/Retina displays
|
|
|
|
var isNormalZoom = ratio === 100 || ratio === 200
|
|
|
|
// 有个显示器默认值是1.25
|
|
|
|
|
|
|
|
var isNormalZoom = ratio === 100 || ratio === 200 || ratio === 125
|
|
|
|
if (!isNormalZoom) {
|
|
|
|
if (!isNormalZoom) {
|
|
|
|
suofang();
|
|
|
|
suofang();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$(window).resize(function() {
|
|
|
|
$(window).resize(function() {
|
|
|
|
var ratio = Math.round(window.devicePixelRatio * 100);
|
|
|
|
var ratio = Math.round(window.devicePixelRatio * 100);
|
|
|
|
var isNormalZoom = ratio === 100 || ratio === 200
|
|
|
|
var isNormalZoom = ratio === 100 || ratio === 200 || ratio === 125
|
|
|
|
if (!isNormalZoom) {
|
|
|
|
if (!isNormalZoom) {
|
|
|
|
suofang();
|
|
|
|
suofang();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|