Преглед на файлове

Поправка бага

Book Pauk преди 6 години
родител
ревизия
1cf1ebb81e
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      client/components/Reader/Reader.vue

+ 2 - 0
client/components/Reader/Reader.vue

@@ -72,6 +72,8 @@ export default @Component({
                 const textPage = this.$refs.page;
                 if (textPage.bookPos != newValue) {
                     textPage.bookPos = newValue;
+                }
+                if (this.lastOpenedBook && this.lastOpenedBook.bookPos != newValue) {
                     this.commit('reader/setOpenedBook', Object.assign({}, this.lastOpenedBook, {bookPos: newValue}));
                 }
             }