Tweak the --scale-factor CSS-variable warning threshold (issue 16254)

This is apparently needed to account for the rounding used in Chromium-browsers, such that the warning message isn't displayed unnecessarily.
This commit is contained in:
Jonas Jenwald 2023-04-06 13:11:12 +02:00
parent 65c4a4b3fe
commit 4bf8e5c13d

View File

@ -475,7 +475,7 @@ function renderTextLayer(params) {
if (
visibility === "visible" &&
(!scaleFactor || Math.abs(scaleFactor - viewport.scale) > 1e-15)
(!scaleFactor || Math.abs(scaleFactor - viewport.scale) > 1e-5)
) {
console.error(
"The `--scale-factor` CSS-variable must be set, " +