Switch to page-scrolling mode when the pdf has more than 10000 pages (bug 1895050)

This commit is contained in:
Calixte Denizet 2024-05-30 15:08:32 +02:00
parent 4d9c25a41a
commit 018649f13b

View file

@ -70,8 +70,8 @@ import { SimpleLinkService } from "./pdf_link_service.js";
const DEFAULT_CACHE_SIZE = 10; const DEFAULT_CACHE_SIZE = 10;
const PagesCountLimit = { const PagesCountLimit = {
FORCE_SCROLL_MODE_PAGE: 15000, FORCE_SCROLL_MODE_PAGE: 10000,
FORCE_LAZY_PAGE_INIT: 7500, FORCE_LAZY_PAGE_INIT: 5000,
PAUSE_EAGER_PAGE_INIT: 250, PAUSE_EAGER_PAGE_INIT: 250,
}; };