diff --git a/src/util.ts b/src/util.ts index c714fc30..5170d86b 100644 --- a/src/util.ts +++ b/src/util.ts @@ -137,7 +137,7 @@ export function getVisibleArea( const visibleArea = { ...initArea }; (scrollerList || []).forEach((ele) => { - if (ele instanceof HTMLBodyElement) { + if (ele instanceof HTMLBodyElement || ele instanceof HTMLHtmlElement) { return; }