Добавил проверку __p при выходе за пределы текста
This commit is contained in:
@@ -230,6 +230,11 @@ class TextPage extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
draw(immediate) {
|
draw(immediate) {
|
||||||
|
if (this.book && this.bookPos >= this.parsed.textLength) {
|
||||||
|
this.doEnd();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.canvasShowFirst = !this.canvasShowFirst;
|
this.canvasShowFirst = !this.canvasShowFirst;
|
||||||
const context = this.context;
|
const context = this.context;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user