Skip to content

Commit

Permalink
fix: fixed useLockScroll
Browse files Browse the repository at this point in the history
  • Loading branch information
molok0aleks99 committed Apr 27, 2024
1 parent 40fffa3 commit c23411c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/useLockScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const isVerticalScroll = (element: HTMLElement): boolean => {
const isBody = document.body === element

return isBody
? window.innerWidth > document.documentElement.clientWidth
? document.documentElement.scrollHeight > window.innerHeight
: element.scrollHeight > element.clientHeight
}

Expand Down

0 comments on commit c23411c

Please sign in to comment.