Skip to content

Commit de74c0d

Browse files
authored
fix: add HTMLHtmlElement to judgement of getVisibleArea (#413)
1 parent 2d5270a commit de74c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export function getVisibleArea(
137137
const visibleArea = { ...initArea };
138138

139139
(scrollerList || []).forEach((ele) => {
140-
if (ele instanceof HTMLBodyElement) {
140+
if (ele instanceof HTMLBodyElement || ele instanceof HTMLHtmlElement) {
141141
return;
142142
}
143143

0 commit comments

Comments
 (0)