mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Flow update fixes
This commit is contained in:
parent
a899ddd4d6
commit
afc906e6b3
3 changed files with 10 additions and 4 deletions
|
@ -405,7 +405,9 @@ class Rendition {
|
|||
*/
|
||||
flow(flow){
|
||||
var _flow = flow;
|
||||
if (flow === "scrolled-doc" || flow === "scrolled-continuous") {
|
||||
if (flow === "scrolled" ||
|
||||
flow === "scrolled-doc" ||
|
||||
flow === "scrolled-continuous") {
|
||||
_flow = "scrolled";
|
||||
}
|
||||
|
||||
|
@ -413,6 +415,8 @@ class Rendition {
|
|||
_flow = "paginated";
|
||||
}
|
||||
|
||||
this.settings.flow = flow;
|
||||
|
||||
if (this._layout) {
|
||||
this._layout.flow(_flow);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue