From 72dc4e6ba14b15555e7cd08e0ed7b2afe36b2f58 Mon Sep 17 00:00:00 2001 From: iizmg Date: Mon, 25 May 2020 13:43:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=8B=89=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/App.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/src/App.vue b/admin/src/App.vue index 1b8cd3b..144c545 100644 --- a/admin/src/App.vue +++ b/admin/src/App.vue @@ -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;