[multiscaling] wrong scaling mark
This commit is contained in:
parent
842609d80c
commit
d7e889332c
|
@ -137,15 +137,15 @@ Common.Utils = _.extend(new(function() {
|
|||
}
|
||||
|
||||
var $root = $(document.body);
|
||||
if ( scale.devicePixelRatio > 1 && scale.devicePixelRatio <= 1.5 ) {
|
||||
if ( scale.devicePixelRatio < 1.5 ) {
|
||||
$root.removeClass('pixel-ratio__1_5 pixel-ratio__2');
|
||||
} else
|
||||
if ( scale.devicePixelRatio > 1.5 && !(scale.devicePixelRatio > 2) ) {
|
||||
$root.removeClass('pixel-ratio__2');
|
||||
$root.addClass('pixel-ratio__1_5');
|
||||
} else
|
||||
if ( scale.devicePixelRatio > 1.5 /*&& scale.devicePixelRatio <= 2*/ ) {
|
||||
} else {
|
||||
$root.addClass('pixel-ratio__2');
|
||||
$root.removeClass('pixel-ratio__1_5');
|
||||
} else {
|
||||
$root.removeClass('pixel-ratio__1_5 pixel-ratio__2');
|
||||
}
|
||||
|
||||
// me.innerWidth = window.innerWidth * me.zoom;
|
||||
|
|
Loading…
Reference in a new issue