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:
parent
65c4a4b3fe
commit
4bf8e5c13d
@ -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, " +
|
||||
|
Loading…
Reference in New Issue
Block a user