Добавил вкл-выкл скроллинга на среднюю кнопку мыши

This commit is contained in:
Book Pauk
2019-02-01 02:34:22 +07:00
parent 6582d99442
commit 2390860954
2 changed files with 4 additions and 1 deletions

View File

@@ -54,6 +54,7 @@
@tool-bar-toggle="toolBarToggle"
@full-screen-toogle="fullScreenToggle"
@stop-scrolling="stopScrolling"
@scrolling-toggle="scrollingToggle"
></component>
</keep-alive>

View File

@@ -553,7 +553,7 @@ class TextPage extends Vue {
len = (len > this.pageLineCount + 1 ? this.pageLineCount + 1 : len);
let y = this.fontSize*this.textShift;
for (let i = 0; i < len; i++) {
const line = lines[i];
/* line:
@@ -886,6 +886,8 @@ class TextPage extends Vue {
this.repDoing = true;
this.debouncedStartClickRepeat(event.offsetX, event.offsetY);
}
} else if (event.button == 1) {
this.$emit('scrolling-toggle');
} else if (event.button == 2) {
this.doToolBarToggle();
}