=== -> !==
This commit is contained in:
parent
68c67b64c5
commit
7c26fe46b8
1 changed files with 1 additions and 1 deletions
|
@ -1378,7 +1378,7 @@ const assertWithinDelta = (actual, expect, delta, label) => {
|
||||||
const isScaleFactorRounding = () => {
|
const isScaleFactorRounding = () => {
|
||||||
const {scaleFactor} = screen.getPrimaryDisplay()
|
const {scaleFactor} = screen.getPrimaryDisplay()
|
||||||
// Return true if scale factor is non-integer value
|
// Return true if scale factor is non-integer value
|
||||||
if (Math.round(scaleFactor) === scaleFactor) return true
|
if (Math.round(scaleFactor) !== scaleFactor) return true
|
||||||
// Return true if scale factor is odd number above 2
|
// Return true if scale factor is odd number above 2
|
||||||
return scaleFactor > 2 && scaleFactor % 2 === 1
|
return scaleFactor > 2 && scaleFactor % 2 === 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue