Доработки двухстраничного режима

This commit is contained in:
Book Pauk
2021-02-04 20:34:25 +07:00
parent cfc946ad12
commit 52f9131f99
4 changed files with 17 additions and 5 deletions

View File

@@ -317,7 +317,7 @@ export default class DrawHelper {
}
async doPageAnimationRightShift(page1, page2, duration, isDown, animation1Finish) {
const s = this.w + this.fontSize;
const s = this.boxW + this.fontSize;
if (isDown) {
page1.style.transform = `translateX(${s}px)`;

View File

@@ -519,7 +519,7 @@ class TextPage extends Vue {
async startTextScrolling() {
if (this.doingScrolling || !this.book || !this.parsed.textLength || !this.linesDown || this.pageLineCount < 1 ||
this.linesDown.length <= this.pageLineCount) {
this.linesDown.length <= this.pageLineCount || this.dualPageMode) {
this.doStopScrolling();
return;
}