下拉刷新

This commit is contained in:
iizmg
2020-05-25 12:09:12 +08:00
parent cccc7d29f6
commit cfd84e7b52
+3 -3
View File
@@ -257,7 +257,7 @@
e.preventDefault();
this.moveDistance = Math.pow(move, 0.8);
// console.log(window.innerHeight, scrollTop, e.targetTouches[0].clientY, y, this.startY, move, this.moveDistance);
if (this.moveDistance > 80) {
if (this.moveDistance > 70) {
if (this.moveState === 1) return;
this.moveState = 1;
} else {
@@ -271,8 +271,8 @@
touchEnd(e) {
//下拉刷新逻辑
{
if (this.moveDistance > 80) {
this.moveDistance = 80;
if (this.moveDistance > 70) {
this.moveDistance = 70;
this.$EventBus.$emit(glob.eventNames.globRefreshEventName);
this.moveState = 0;
} else {