[multiscaling] wrong scaling mark

This commit is contained in:
Maxim Kadushkin 2021-02-18 00:26:32 +03:00
parent 842609d80c
commit d7e889332c

View file

@ -137,15 +137,15 @@ Common.Utils = _.extend(new(function() {
} }
var $root = $(document.body); 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.removeClass('pixel-ratio__2');
$root.addClass('pixel-ratio__1_5'); $root.addClass('pixel-ratio__1_5');
} else } else {
if ( scale.devicePixelRatio > 1.5 /*&& scale.devicePixelRatio <= 2*/ ) {
$root.addClass('pixel-ratio__2'); $root.addClass('pixel-ratio__2');
$root.removeClass('pixel-ratio__1_5'); $root.removeClass('pixel-ratio__1_5');
} else {
$root.removeClass('pixel-ratio__1_5 pixel-ratio__2');
} }
// me.innerWidth = window.innerWidth * me.zoom; // me.innerWidth = window.innerWidth * me.zoom;