From 49f7d88075f3828e4fb6f5bdcb112d4202680b81 Mon Sep 17 00:00:00 2001 From: Chester Lee <674297026@qq.com> Date: Mon, 26 Aug 2024 11:04:04 +0800 Subject: [PATCH] Update up-list.vue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit list 滑动 偏移量不一样取绝对值,会导致iOS下拉偏移量计算错误 --- src/uni_modules/uview-plus/components/up-list/up-list.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uni_modules/uview-plus/components/up-list/up-list.vue b/src/uni_modules/uview-plus/components/up-list/up-list.vue index 68c7ee072..a742d60bc 100644 --- a/src/uni_modules/uview-plus/components/up-list/up-list.vue +++ b/src/uni_modules/uview-plus/components/up-list/up-list.vue @@ -129,7 +129,7 @@ scrollTop = e.detail.scrollTop // #endif this.innerScrollTop = scrollTop - this.$emit('scroll', Math.abs(scrollTop)) + this.$emit('scroll', scrollTop) }, scrollIntoViewById(id) { // #ifdef APP-NVUE