1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Simplify iframe view expanding

This commit is contained in:
Fred Chasen 2017-08-28 17:10:51 -04:00
parent 8d2b9cc8d4
commit eff216fd2d
5 changed files with 57 additions and 135 deletions

View file

@ -529,7 +529,7 @@ class DefaultViewManager {
// Find mapping
let start = left + container.left - position + used;
let end = start + this.layout.spreadWidth - used;
let end = start + this.layout.width - used;
let mapping = this.mapping.page(view.contents, view.section.cfiBase, start, end);