Небольшие поправки
This commit is contained in:
@@ -96,7 +96,7 @@ class TextPage extends Vue {
|
|||||||
return `rgba(${r},${g},${b},${alpha})`;
|
return `rgba(${r},${g},${b},${alpha})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
async calcDrawProps() {
|
calcDrawProps() {
|
||||||
//preloaded fonts
|
//preloaded fonts
|
||||||
this.fontShifts = {//%
|
this.fontShifts = {//%
|
||||||
ReaderDefault: 0,
|
ReaderDefault: 0,
|
||||||
@@ -279,15 +279,13 @@ class TextPage extends Vue {
|
|||||||
|
|
||||||
this.$root.$emit('set-app-title', this.title);
|
this.$root.$emit('set-app-title', this.title);
|
||||||
|
|
||||||
const parsed = this.book.parsed;
|
this.parsed = this.book.parsed;
|
||||||
this.parsed = parsed;
|
|
||||||
this.calcDrawProps();
|
this.calcDrawProps();
|
||||||
|
|
||||||
await this.loadFonts();
|
await this.loadFonts();
|
||||||
|
|
||||||
this.draw();
|
//this.draw();
|
||||||
this.refreshTime();
|
|
||||||
|
|
||||||
// шрифты хрен знает когда подгружаются, поэтому
|
// шрифты хрен знает когда подгружаются, поэтому
|
||||||
let i = 0;
|
let i = 0;
|
||||||
this.parsed.force = true;
|
this.parsed.force = true;
|
||||||
@@ -297,6 +295,8 @@ class TextPage extends Vue {
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
this.parsed.force = false;
|
this.parsed.force = false;
|
||||||
|
|
||||||
|
this.refreshTime();
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -315,6 +315,8 @@ class TextPage extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
draw() {
|
draw() {
|
||||||
|
if (this.w < 10)
|
||||||
|
return;
|
||||||
if (this.book && this.bookPos > 0 && this.bookPos >= this.parsed.textLength) {
|
if (this.book && this.bookPos > 0 && this.bookPos >= this.parsed.textLength) {
|
||||||
this.doEnd();
|
this.doEnd();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user