[common] correct condition to apply 150% scaling styles
This commit is contained in:
parent
1fed5dc207
commit
c9d533a00e
|
@ -140,7 +140,7 @@ Common.Utils = _.extend(new(function() {
|
||||||
if ( scale.devicePixelRatio < 1.5 ) {
|
if ( scale.devicePixelRatio < 1.5 ) {
|
||||||
$root.removeClass('pixel-ratio__1_5 pixel-ratio__2');
|
$root.removeClass('pixel-ratio__1_5 pixel-ratio__2');
|
||||||
} else
|
} else
|
||||||
if ( scale.devicePixelRatio > 1.5 && !(scale.devicePixelRatio > 2) ) {
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue