К предыдущему
This commit is contained in:
@@ -227,23 +227,25 @@ class TextPage extends Vue {
|
|||||||
|
|
||||||
this.activeCanvas = !this.activeCanvas;
|
this.activeCanvas = !this.activeCanvas;
|
||||||
|
|
||||||
immediate = true;
|
|
||||||
if (immediate) {
|
if (immediate) {
|
||||||
if (this.activeCanvas)
|
if (this.activeCanvas)
|
||||||
this.page1 = this.drawPage(this.bookPos);
|
this.page1 = this.drawPage(this.bookPos);
|
||||||
else
|
else
|
||||||
this.page2 = this.drawPage(this.bookPos);
|
this.page2 = this.drawPage(this.bookPos);
|
||||||
} else {
|
} else {
|
||||||
/*if (this.pageChangeDirectionDown && this.pagePrepared && this.bookPos == this.bookPosPrepared) {
|
if (this.pageChangeDirectionDown && this.pagePrepared && this.bookPos == this.bookPosPrepared) {
|
||||||
this.linesDown = this.linesDownNext;
|
this.linesDown = this.linesDownNext;
|
||||||
this.linesUp = this.linesUpNext;
|
this.linesUp = this.linesUpNext;
|
||||||
this.pagePrepared = false;
|
this.pagePrepared = false;
|
||||||
this.debouncedPrepareNextPage();
|
this.debouncedPrepareNextPage();
|
||||||
} else {
|
} else {
|
||||||
this.drawPage(context, this.bookPos);
|
if (this.activeCanvas)
|
||||||
|
this.page1 = this.drawPage(this.bookPos);
|
||||||
|
else
|
||||||
|
this.page2 = this.drawPage(this.bookPos);
|
||||||
this.pagePrepared = false;
|
this.pagePrepared = false;
|
||||||
this.debouncedPrepareNextPage();
|
this.debouncedPrepareNextPage();
|
||||||
}*/
|
}
|
||||||
|
|
||||||
if (this.currentTransition) {
|
if (this.currentTransition) {
|
||||||
//this.currentTransition
|
//this.currentTransition
|
||||||
@@ -408,8 +410,10 @@ class TextPage extends Vue {
|
|||||||
if (i >= 0 && this.linesDown.length > i) {
|
if (i >= 0 && this.linesDown.length > i) {
|
||||||
this.bookPosPrepared = this.linesDown[i].begin;
|
this.bookPosPrepared = this.linesDown[i].begin;
|
||||||
|
|
||||||
const ctx = (!this.activeCanvas ? this.context1 : this.context2);
|
if (this.activeCanvas)
|
||||||
this.drawPage(ctx, this.bookPosPrepared, true);
|
this.page2 = this.drawPage(this.bookPosPrepared, true);//наоборот
|
||||||
|
else
|
||||||
|
this.page1 = this.drawPage(this.bookPosPrepared, true);
|
||||||
|
|
||||||
this.pagePrepared = true;
|
this.pagePrepared = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user