[common] changed function to check scaling value

This commit is contained in:
Maxim Kadushkin 2021-02-18 16:39:23 +03:00
parent 02b3ed79c5
commit 42987446fb

View file

@ -148,8 +148,9 @@ Common.Utils = _.extend(new(function() {
$root.removeClass('pixel-ratio__1_5');
}
// me.innerWidth = window.innerWidth * me.zoom;
// me.innerHeight = window.innerHeight * me.zoom;
me.zoom = scale.correct ? scale.zoom : 1;
me.innerWidth = window.innerWidth * me.zoom;
me.innerHeight = window.innerHeight * me.zoom;
};
me.zoom = 1;
me.innerWidth = window.innerWidth;