askbot-dragon 1.3.74 → 1.3.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -69,7 +69,8 @@ export default {
|
|
|
69
69
|
pageX2:0,
|
|
70
70
|
pageY2:0,
|
|
71
71
|
originScale:1,
|
|
72
|
-
}
|
|
72
|
+
},
|
|
73
|
+
isTouchMoved: false
|
|
73
74
|
}
|
|
74
75
|
},
|
|
75
76
|
// methods:{
|
|
@@ -601,7 +602,7 @@ export default {
|
|
|
601
602
|
this.loadPdfData(pageIndex)
|
|
602
603
|
},
|
|
603
604
|
pdfScroll (e) {
|
|
604
|
-
if(this.preViewType !== 'pdf') {
|
|
605
|
+
if(this.preViewType !== 'pdf' || !this.isTouchMoved) {
|
|
605
606
|
return
|
|
606
607
|
}
|
|
607
608
|
this.debounceScrollPdf(e, this)
|
|
@@ -835,6 +836,7 @@ export default {
|
|
|
835
836
|
// 获取放大或缩小的区域DOM
|
|
836
837
|
let matrix_box = this.contentView
|
|
837
838
|
matrix_box.addEventListener("touchstart", function (event) {
|
|
839
|
+
this.isTouchMoved = true
|
|
838
840
|
let touches = event.touches;
|
|
839
841
|
let events = touches[0];
|
|
840
842
|
let events2 = touches[1];
|
|
@@ -921,6 +923,9 @@ export default {
|
|
|
921
923
|
// matrix_box.style.transformOrigin = "0px 0px 0px";
|
|
922
924
|
}
|
|
923
925
|
},{ passive: false });
|
|
926
|
+
document.addEventListener('touchend',function() {
|
|
927
|
+
that.isTouchMoved = false
|
|
928
|
+
},{ passive: false })
|
|
924
929
|
});
|
|
925
930
|
},
|
|
926
931
|
getDistance(start, stop) {
|