forked from akai/readest
perf(pdf): pre-render next page for PDFs (#2984)
This should close #1911 and #13.
This commit is contained in:
@@ -188,7 +188,9 @@ const FoliateViewer: React.FC<{
|
||||
setViewSettings(bookKey, { ...viewSettings });
|
||||
}
|
||||
|
||||
mountAdditionalFonts(detail.doc, isCJKLang(bookData.book?.primaryLanguage));
|
||||
if (!bookData?.isFixedLayout) {
|
||||
mountAdditionalFonts(detail.doc, isCJKLang(bookData.book?.primaryLanguage));
|
||||
}
|
||||
|
||||
getLoadedFonts().forEach((font) => {
|
||||
mountCustomFont(detail.doc, font);
|
||||
|
||||
@@ -198,6 +198,7 @@ export const DEFAULT_MOBILE_VIEW_SETTINGS: Partial<ViewSettings> = {
|
||||
defaultFont: 'Sans-serif',
|
||||
marginBottomPx: 16,
|
||||
disableDoubleClick: true,
|
||||
spreadMode: 'none',
|
||||
};
|
||||
|
||||
export const DEFAULT_CJK_VIEW_SETTINGS: Partial<ViewSettings> = {
|
||||
|
||||
+1
-1
Submodule packages/foliate-js updated: f443513d52...29fd7aadf9
Reference in New Issue
Block a user