Поправил бажок

This commit is contained in:
Book Pauk
2019-01-22 16:10:58 +07:00
parent a2b5a3d238
commit 6a05687385

View File

@@ -556,7 +556,7 @@ class TextPage extends Vue {
const touch = event.touches[0];
const x = touch.pageX - this.canvas.offsetLeft;
const y = touch.pageY - this.canvas.offsetTop;
this.handleClick(x, y);
if (this.handleClick(x, y))
this.startClickRepeat(x, y);
}
}
@@ -570,7 +570,7 @@ class TextPage extends Vue {
if (event.button == 0) {
const x = event.pageX - this.canvas.offsetLeft;
const y = event.pageY - this.canvas.offsetTop;
this.handleClick(x, y);
if (this.handleClick(x, y))
this.startClickRepeat(x, y);
} else if (event.button == 2) {
this.doToolBarToggle();
@@ -606,7 +606,7 @@ class TextPage extends Vue {
if (pointX >= titleBar.x1 && pointX <= titleBar.x2 &&
pointY >= titleBar.y1 && pointY <= titleBar.y2) {
window.open(this.meta.url, '_blank');
return;
return false;
}
}