From 4ee31afd461f6620a39260914be7c36f6c85c65b Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 21 Apr 2023 19:33:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=BB=9A=E5=8A=A8=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scroll/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/scroll/index.js b/src/scroll/index.js index 14ae374..02759a0 100644 --- a/src/scroll/index.js +++ b/src/scroll/index.js @@ -191,9 +191,6 @@ class Scroll extends Component { let yBar = 50 // 滚动条的高度 let xBar = 50 // 滚动条的宽度 - this.scrollLeft = 0 - this.scrollTop = 0 - // 修正由于未知原因,导致父容器产生滚动距离 // 导致的内容被遮挡的bug // 重构后待观察, 暂时注释掉这行(2023/3/23) @@ -232,8 +229,6 @@ class Scroll extends Component { } else { this.$refs.y.parentNode.style.display = 'none' } - - // this.$requestUpdate() } _fetchScrollX(moveX) {