From d7e889332cb4f8e7399743fec08a7ac4f4ff602b Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Thu, 18 Feb 2021 00:26:32 +0300 Subject: [PATCH] [multiscaling] wrong scaling mark --- apps/common/main/lib/util/utils.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/common/main/lib/util/utils.js b/apps/common/main/lib/util/utils.js index 716c6e6d2..5e2c104a9 100644 --- a/apps/common/main/lib/util/utils.js +++ b/apps/common/main/lib/util/utils.js @@ -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;