summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-02-20 22:49:39 +0300
committerAndrew Dolgov <[email protected]>2018-02-20 22:49:39 +0300
commit550cf1677cd5ee201198dccd207a8012ec243e14 (patch)
treeef1e3fad4c98264ac8d42bf3f872d3cd95575852 /read.html
parent642bede5b6446165cf1f169a4752537eb53c24d0 (diff)
Revert "exp: enable transitions after a delay"
This reverts commit 642bede5b6446165cf1f169a4752537eb53c24d0.
Diffstat (limited to 'read.html')
-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();