summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-03-03 15:30:43 +0300
committerAndrew Dolgov <[email protected]>2017-03-03 15:30:43 +0300
commit18fed64bcdee212a10fc3200807c12a19a40b936 (patch)
tree9faf1d24f3de2883bdfc61844663570ae6d5b5a6 /read.html
parent0397083213f30945324b91395caa7d07318bad00 (diff)
add to previous
Diffstat (limited to 'read.html')
-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,
});