From d505fd0795fe86a68e1751c92267f04e3c4ce3a8 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Thu, 17 Oct 2019 21:38:13 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B0=D1=8F=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/Reader.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/components/Reader/Reader.vue b/client/components/Reader/Reader.vue index 10902c02..b3055709 100644 --- a/client/components/Reader/Reader.vue +++ b/client/components/Reader/Reader.vue @@ -512,6 +512,7 @@ class Reader extends Vue { async bookManagerEvent(eventName) { if (eventName == 'set-recent' || eventName == 'recent-deleted') { const oldBook = (this.textPage ? this.textPage.lastBook : null); + const oldPos = (this.textPage ? this.textPage.bookPos : null); const newBook = bookManager.mostRecentBook(); if (!(oldBook && newBook && oldBook.key == newBook.key)) { @@ -526,7 +527,7 @@ class Reader extends Vue { } finally { this.loadingBook = false; } - } else if (oldBook.bookPos != newBook.bookPos) { + } else if (oldPos != newBook.bookPos) { while (this.loadingBook) await utils.sleep(100); this.bookPosChanged({bookPos: newBook.bookPos}); }