diff options
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, }); |