diff options
author | Andrew Dolgov <[email protected]> | 2018-02-20 22:49:39 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-02-20 22:49:39 +0300 |
commit | 550cf1677cd5ee201198dccd207a8012ec243e14 (patch) | |
tree | ef1e3fad4c98264ac8d42bf3f872d3cd95575852 | |
parent | 642bede5b6446165cf1f169a4752537eb53c24d0 (diff) |
Revert "exp: enable transitions after a delay"
This reverts commit 642bede5b6446165cf1f169a4752537eb53c24d0.
-rw-r--r-- | read.html | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -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(); |