Skip to content

Commit

Permalink
fix: add HTMLHtmlElement to judgement of getVisibleArea (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 authored Aug 16, 2023
1 parent 2d5270a commit de74c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit de74c0d

Please sign in to comment.