From ee8c538708cfe69fc084dc39498220464993ba19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Mon, 1 Feb 2021 19:38:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=BB=9A=E5=8A=A8=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=BB=9A=E5=8A=A8=E6=9D=A1=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scroll/index.wc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scroll/index.wc b/src/scroll/index.wc index 0bdafa6..db20cca 100644 --- a/src/scroll/index.wc +++ b/src/scroll/index.wc @@ -255,11 +255,11 @@ export default class Scroll { xw = 50 } - // 100%时不显示 - if (xw === ow) { + // 100%或主体高度比滚动条还短时不显示 + if (xw >= ow) { xw = 0 } - if (yh === oh) { + if (yh >= oh) { yh = 0 }