diff options
author | Andrew Dolgov <[email protected]> | 2017-03-03 15:30:43 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-03-03 15:30:43 +0300 |
commit | 18fed64bcdee212a10fc3200807c12a19a40b936 (patch) | |
tree | 9faf1d24f3de2883bdfc61844663570ae6d5b5a6 /read.html | |
parent | 0397083213f30945324b91395caa7d07318bad00 (diff) |
add to previous
Diffstat (limited to 'read.html')
-rw-r--r-- | read.html | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -341,17 +341,18 @@ baseUrl + "js/swipes.js" ], null, renderer.doc.head); localforage.getItem("epube.disable-transitions").then(function(disable) { - if (!disable) + if (!disable) { EPUBJS.core.addCss(baseUrl + "css/transitions.css", null, renderer.doc.head); + + EPUBJS.Render.Iframe.prototype.setLeft = function(leftPos){ + this.docEl.style[this.transform] = 'translate('+ (-leftPos) + 'px, 0)'; + } + } }); if (callback) callback(); } - EPUBJS.Render.Iframe.prototype.setLeft = function(leftPos){ - this.docEl.style[this.transform] = 'translate('+ (-leftPos) + 'px, 0)'; - } - var book = ePub({ restore: false, }); |