Skip to content

Commit

Permalink
Merge pull request #480 from lidofinance/feature/we-1477-fix-the-scro…
Browse files Browse the repository at this point in the history
…lling-page-under-the-open-modal-windows

fix: fixed useLockScroll
  • Loading branch information
molok0aleks99 authored May 2, 2024
2 parents 40fffa3 + c23411c commit d3e7b3e
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 d3e7b3e

Please sign in to comment.