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

This commit is contained in:
Book Pauk
2019-02-13 16:41:30 +07:00
parent c88baf3c2c
commit 3e3f259920
2 changed files with 7 additions and 3 deletions

View File

@@ -45,10 +45,13 @@ const minLayoutWidth = 100;
export default @Component({
watch: {
bookPos: function(newValue) {
this.$emit('book-pos-changed', {bookPos: newValue, bookPosSeen: this.bookPosSeen});
bookPos: function() {
this.$emit('book-pos-changed', {bookPos: this.bookPos, bookPosSeen: this.bookPosSeen});
this.draw();
},
bookPosSeen: function() {
this.$emit('book-pos-changed', {bookPos: this.bookPos, bookPosSeen: this.bookPosSeen});
},
settings: function() {
this.debouncedLoadSettings();
},
@@ -69,6 +72,7 @@ class TextPage extends Vue {
lastBook = null;
bookPos = 0;
bookPosSeen = null;
fontStyle = null;
fontSize = null;