1
0
Fork 0
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:
Fred Chasen 2017-06-09 12:53:43 -04:00
parent a899ddd4d6
commit afc906e6b3
3 changed files with 10 additions and 4 deletions

View file

@ -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);
}