summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--read.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/read.html b/read.html
index 60c2569..3f76139 100644
--- a/read.html
+++ b/read.html
@@ -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,
});