1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Add test for drawing delay with CSS-only zoom

This commit adds a test for 0603d1ac18.
Before the fix the `pagerendered` events would be fired just 2-3
milliseconds after the call to `increaseScale`/`decreaseScale`.
This commit is contained in:
Nicolò Ribaudo 2024-05-21 13:39:47 +02:00
parent 9ee7c07b83
commit 53d866660a
No known key found for this signature in database
GPG key ID: AAFDA9101C58F338
2 changed files with 95 additions and 1 deletions

View file

@ -359,6 +359,12 @@ const PDFViewerApplication = {
params.get("highlighteditorcolors")
);
}
if (params.has("maxcanvaspixels")) {
AppOptions.set(
"maxCanvasPixels",
Number(params.get("maxcanvaspixels"))
);
}
if (params.has("supportscaretbrowsingmode")) {
AppOptions.set(
"supportsCaretBrowsingMode",