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:
parent
6b01c94d0c
commit
00fd8c6b3b
8 changed files with 170 additions and 40 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue