Добавил вкл-выкл скроллинга на среднюю кнопку мыши
This commit is contained in:
@@ -54,6 +54,7 @@
|
|||||||
@tool-bar-toggle="toolBarToggle"
|
@tool-bar-toggle="toolBarToggle"
|
||||||
@full-screen-toogle="fullScreenToggle"
|
@full-screen-toogle="fullScreenToggle"
|
||||||
@stop-scrolling="stopScrolling"
|
@stop-scrolling="stopScrolling"
|
||||||
|
@scrolling-toggle="scrollingToggle"
|
||||||
></component>
|
></component>
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
|
|
||||||
|
|||||||
@@ -553,7 +553,7 @@ class TextPage extends Vue {
|
|||||||
len = (len > this.pageLineCount + 1 ? this.pageLineCount + 1 : len);
|
len = (len > this.pageLineCount + 1 ? this.pageLineCount + 1 : len);
|
||||||
|
|
||||||
let y = this.fontSize*this.textShift;
|
let y = this.fontSize*this.textShift;
|
||||||
|
|
||||||
for (let i = 0; i < len; i++) {
|
for (let i = 0; i < len; i++) {
|
||||||
const line = lines[i];
|
const line = lines[i];
|
||||||
/* line:
|
/* line:
|
||||||
@@ -886,6 +886,8 @@ class TextPage extends Vue {
|
|||||||
this.repDoing = true;
|
this.repDoing = true;
|
||||||
this.debouncedStartClickRepeat(event.offsetX, event.offsetY);
|
this.debouncedStartClickRepeat(event.offsetX, event.offsetY);
|
||||||
}
|
}
|
||||||
|
} else if (event.button == 1) {
|
||||||
|
this.$emit('scrolling-toggle');
|
||||||
} else if (event.button == 2) {
|
} else if (event.button == 2) {
|
||||||
this.doToolBarToggle();
|
this.doToolBarToggle();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user