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; }