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 }