fix isScrollable

This commit is contained in:
wuyudi 2023-02-08 02:29:44 +09:00
parent 34489bfb30
commit 7076c324bb

View file

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