没有相关的监听事件或回调函数,但可以在业务层判断。
请您参考getScrollHost
这个接口。如下内置demo里的代码片段供参考:
export function isScrolledToBottom(pdfViewer: PDFViewer) {
const scrollWrap = pdfViewer.getScrollWrap();
const scrollHost = scrollWrap.getScrollHost() as HTMLElement;
return scrollHost.scrollHeight + getScrollbarHeight(scrollHost) === scrollHost.scrollTop + scrollHost.offsetHeight;
}