1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

fixes scrolled location reporting

This commit is contained in:
Fred Chasen 2017-03-30 19:36:33 -04:00
parent 6b01c94d0c
commit 00fd8c6b3b
8 changed files with 170 additions and 40 deletions

View file

@ -37,7 +37,15 @@ class Layout {
* @param {string} flow paginated | scrolled
*/
flow(flow) {
this._flow = (flow === "paginated") ? "paginated" : "scrolled";
if (typeof(flow) != "undefined") {
if (flow === "scrolled-continuous" ||
flow === "scrolled-doc") {
this._flow = "scrolled";
} else {
this._flow = "paginated";
}
}
return this._flow;
}
/**