Skip to content

Commit 746201a

Browse files
authored
fix: offsetHeight
1 parent dc40369 commit 746201a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layout/_partial/scripts/global.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@
403403
)
404404
}
405405
volantis.scroll.offsetHeight = function () {
406-
return Math.max(
406+
return Math.min(
407407
document.body.offsetHeight,
408408
document.documentElement.offsetHeight,
409409
document.body.clientHeight,

0 commit comments

Comments
 (0)