summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--read.html15
1 files changed, 4 insertions, 11 deletions
diff --git a/read.html b/read.html
index ca08996..339e41b 100644
--- a/read.html
+++ b/read.html
@@ -399,19 +399,12 @@
localforage.getItem("epube.disable-transitions").then(function(notransitions) {
if (!notransitions) {
+ EPUBJS.core.addCss(baseUrl + "css/transitions.css", null, renderer.doc.head);
- window.setTimeout(function() {
-
- 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)';
- }
-
- }, 250);
-
+ EPUBJS.Render.Iframe.prototype.setLeft = function(leftPos){
+ this.docEl.style[this.transform] = 'translate('+ (-leftPos) + 'px, 0)';
+ }
}
-
});
if (callback) callback();