Исправление мелких багов при прокрутке
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
v-show="clickControl" ref="layoutEvents" class="layout events"
|
v-show="clickControl" ref="layoutEvents" class="layout events"
|
||||||
oncontextmenu="return false;"
|
oncontextmenu="return false;"
|
||||||
@mousedown.prevent.stop="onMouseDown" @mouseup.prevent.stop="onMouseUp"
|
@mousedown.prevent.stop="onMouseDown" @mouseup.prevent.stop="onMouseUp"
|
||||||
|
@mouseover.prevent.stop="onMouseEvent" @mouseout.prevent.stop="onMouseEvent" @mousemove.prevent.stop="onMouseEvent"
|
||||||
@wheel.prevent.stop="onMouseWheel"
|
@wheel.prevent.stop="onMouseWheel"
|
||||||
@touchstart.stop="onTouchStart" @touchend.stop="onTouchEnd" @touchmove.stop="onTouchMove" @touchcancel.prevent.stop="onTouchCancel"
|
@touchstart.stop="onTouchStart" @touchend.stop="onTouchEnd" @touchmove.stop="onTouchMove" @touchcancel.prevent.stop="onTouchCancel"
|
||||||
>
|
>
|
||||||
@@ -1073,6 +1074,7 @@ class TextPage {
|
|||||||
if (this.startTouch) {
|
if (this.startTouch) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
this.endClickRepeat();
|
||||||
}
|
}
|
||||||
|
|
||||||
onTouchEnd(event) {
|
onTouchEnd(event) {
|
||||||
@@ -1157,6 +1159,9 @@ class TextPage {
|
|||||||
onMouseWheel(event) {
|
onMouseWheel(event) {
|
||||||
if (this.$root.isMobileDevice)
|
if (this.$root.isMobileDevice)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
this.endClickRepeat();
|
||||||
|
|
||||||
if (event.deltaY > 0) {
|
if (event.deltaY > 0) {
|
||||||
this.doDown();
|
this.doDown();
|
||||||
} else if (event.deltaY < 0) {
|
} else if (event.deltaY < 0) {
|
||||||
@@ -1164,6 +1169,12 @@ class TextPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMouseEvent() {
|
||||||
|
if (this.$root.isMobileDevice)
|
||||||
|
return;
|
||||||
|
this.endClickRepeat();
|
||||||
|
}
|
||||||
|
|
||||||
onStatusBarClick() {
|
onStatusBarClick() {
|
||||||
const url = this.meta.url;
|
const url = this.meta.url;
|
||||||
if (url && url.indexOf('disk://') != 0) {
|
if (url && url.indexOf('disk://') != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user