Добавил проверку __p при выходе за пределы текста

This commit is contained in:
Book Pauk
2019-01-22 05:09:26 +07:00
parent 1365628cf6
commit dbb511b35e

View File

@@ -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;