mirror of
https://gitee.com/wangkang/udf.git
synced 2026-10-20 20:15:11 +00:00
下拉刷新
This commit is contained in:
+2
-1
@@ -263,7 +263,8 @@
|
||||
if (move > 0) {
|
||||
e.preventDefault();
|
||||
this.moveDistance = Math.pow(move, 0.8);
|
||||
document.getElementsByClassName('loadDiv')[0].style.top = (this.moveDistance > 70 ? 70 : this.moveDistance) + 'px';
|
||||
// document.getElementsByClassName('loadDiv')[0].style.top = (this.moveDistance > 70 ? 70 : parseInt(this.moveDistance)) + 'px';
|
||||
document.getElementsByClassName('loadDiv')[0].style.transform = "translate3d(0," + (this.moveDistance > 70 ? 70 : parseInt(this.moveDistance)) + 'px' + ",0)";
|
||||
// console.log(window.innerHeight, scrollTop, e.targetTouches[0].clientY, y, this.startY, move, this.moveDistance);
|
||||
if (this.moveDistance > 70) {
|
||||
if (this.moveState === 1) return;
|
||||
|
||||
Reference in New Issue
Block a user