From 7076c324bb25fbda89295d0e64452ace8a50b7f1 Mon Sep 17 00:00:00 2001 From: wuyudi Date: Wed, 8 Feb 2023 02:29:44 +0900 Subject: [PATCH] fix isScrollable --- src/util/common.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/common.ts b/src/util/common.ts index b38c343c..1661e453 100644 --- a/src/util/common.ts +++ b/src/util/common.ts @@ -111,8 +111,9 @@ export function getScrollInfo(target: HTMLElement) { top: Math.round(target.scrollTop), height: Math.round(target.scrollHeight), viewHeight: Math.round(target.offsetHeight), - isScrollable: this.height > this.viewHeight, + isScrollable: undefined, }; + scroll.isScrollable = scroll.height > scroll.viewHeight; return scroll; }