We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be54f23 commit dab6947Copy full SHA for dab6947
packages/hooks/src/utils/rect.ts
@@ -1,5 +1,5 @@
1
const getScrollTop = (el: Document | Element) => {
2
- if (el === document || el === document.body) {
+ if (el === document || el === document.documentElement || el === document.body) {
3
return Math.max(
4
window.pageYOffset,
5
document.documentElement.scrollTop,
0 commit comments