Поправил бажок
This commit is contained in:
@@ -556,7 +556,7 @@ class TextPage extends Vue {
|
|||||||
const touch = event.touches[0];
|
const touch = event.touches[0];
|
||||||
const x = touch.pageX - this.canvas.offsetLeft;
|
const x = touch.pageX - this.canvas.offsetLeft;
|
||||||
const y = touch.pageY - this.canvas.offsetTop;
|
const y = touch.pageY - this.canvas.offsetTop;
|
||||||
this.handleClick(x, y);
|
if (this.handleClick(x, y))
|
||||||
this.startClickRepeat(x, y);
|
this.startClickRepeat(x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -570,7 +570,7 @@ class TextPage extends Vue {
|
|||||||
if (event.button == 0) {
|
if (event.button == 0) {
|
||||||
const x = event.pageX - this.canvas.offsetLeft;
|
const x = event.pageX - this.canvas.offsetLeft;
|
||||||
const y = event.pageY - this.canvas.offsetTop;
|
const y = event.pageY - this.canvas.offsetTop;
|
||||||
this.handleClick(x, y);
|
if (this.handleClick(x, y))
|
||||||
this.startClickRepeat(x, y);
|
this.startClickRepeat(x, y);
|
||||||
} else if (event.button == 2) {
|
} else if (event.button == 2) {
|
||||||
this.doToolBarToggle();
|
this.doToolBarToggle();
|
||||||
@@ -606,7 +606,7 @@ class TextPage extends Vue {
|
|||||||
if (pointX >= titleBar.x1 && pointX <= titleBar.x2 &&
|
if (pointX >= titleBar.x1 && pointX <= titleBar.x2 &&
|
||||||
pointY >= titleBar.y1 && pointY <= titleBar.y2) {
|
pointY >= titleBar.y1 && pointY <= titleBar.y2) {
|
||||||
window.open(this.meta.url, '_blank');
|
window.open(this.meta.url, '_blank');
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user