mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Merge pull request #636 from futurepress/respect_linear
Respect linear in spine
This commit is contained in:
commit
307c4ea3a8
9 changed files with 125 additions and 35 deletions
|
@ -545,8 +545,8 @@ class IframeView {
|
|||
var targetPos = this.contents.locationOf(target, this.settings.ignoreClass);
|
||||
|
||||
return {
|
||||
"left": window.scrollX + parentPos.left + targetPos.left,
|
||||
"top": window.scrollY + parentPos.top + targetPos.top
|
||||
"left": window.scrollX + targetPos.left,
|
||||
"top": window.scrollY + targetPos.top
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue