update:下拉刷新bug修复

This commit is contained in:
2021-10-09 15:28:40 +08:00
parent 9218cee300
commit e8b31e4351

View File

@@ -23,7 +23,10 @@ export default {
};
document.body.ontouchend = function(e) {
this.endValue = e.changedTouches[0].pageY;
if (this.endValue - this.startValue > 0) {
if (
this.endValue - this.startValue > 0 &&
e.changedTouches[0].pageY === e.changedTouches[0].clientY
) {
window.location.reload();
}
};