summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
Diffstat (limited to 'read.html')
-rw-r--r--read.html33
1 files changed, 12 insertions, 21 deletions
diff --git a/read.html b/read.html
index b19c23e..0370065 100644
--- a/read.html
+++ b/read.html
@@ -466,27 +466,6 @@
if (callback) callback();
}
- EPUBJS.Renderer.prototype.onResized = function(e) {
- this.trigger('renderer:beforeResize');
-
- var width = this.container.clientWidth;
- var height = this.container.clientHeight;
-
- this.resize(width, height, false);
-
- $(".loading").show();
- $(".loading_message").html("Opening chapter...");
-
- window.setTimeout(function() {
- open_lastread();
-
- window.setTimeout(function() {
- $(".loading").hide();
- }, 500);
-
- }, 1000);
- };
-
if (_is_ios) {
var book = ePub({
restore: false,
@@ -685,7 +664,19 @@
book.on("renderer:chapterUnloaded", function() {
$(".loading").show();
$(".loading_message").html("Opening chapter...");
+ });
+
+ book.on("renderer:resized", function() {
+ $(".loading").show();
+ $(".loading_message").html("Opening chapter...");
+ window.setTimeout(function() {
+ open_lastread();
+
+ window.setTimeout(function() {
+ $(".loading").hide();
+ }, 500);
+ }, 500);
});
book.on("renderer:chapterDisplayed", function() {