1
0
Fork 0
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:
Fred Chasen 2017-06-28 20:47:43 -04:00 committed by GitHub
commit 307c4ea3a8
9 changed files with 125 additions and 35 deletions

View file

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