fix isScrollable
This commit is contained in:
parent
34489bfb30
commit
7076c324bb
1 changed files with 2 additions and 1 deletions
|
@ -111,8 +111,9 @@ export function getScrollInfo(target: HTMLElement) {
|
||||||
top: Math.round(target.scrollTop),
|
top: Math.round(target.scrollTop),
|
||||||
height: Math.round(target.scrollHeight),
|
height: Math.round(target.scrollHeight),
|
||||||
viewHeight: Math.round(target.offsetHeight),
|
viewHeight: Math.round(target.offsetHeight),
|
||||||
isScrollable: this.height > this.viewHeight,
|
isScrollable: undefined,
|
||||||
};
|
};
|
||||||
|
scroll.isScrollable = scroll.height > scroll.viewHeight;
|
||||||
return scroll;
|
return scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue