[common] changed function to check scaling value

This commit is contained in:
Maxim Kadushkin 2021-02-18 16:44:18 +03:00
parent 42987446fb
commit 10cee7a927

View file

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