Former-commit-id: db9ce0f1db669da835e72eac1c8b3265080bac6d
This commit is contained in:
troyeguo
2021-11-02 19:41:28 +08:00
parent 2ded9449a6
commit 656caefc0b
2 changed files with 2 additions and 2 deletions

View File

File diff suppressed because one or more lines are too long

View File

@@ -84,7 +84,7 @@ class Reader extends React.Component<ReaderProps, ReaderState> {
this.setState({ rendition: null }, () => {
(window as any).rangy.init(); // 初始化
this.rendition = epub.renderTo(page, {
manager: this.state.readerMode === "scroll" ? "continuous" : "default",
manager: "default",
flow: this.state.readerMode === "scroll" ? "scrolled" : "auto",
width: "100%",
height: "100%",