Body scroll locking that just works with everything
npm install html-body-scroll-lock> inspired by body-scroll-lock
html-body-scroll-lock enables body scroll locking for everything.targetElementtargetElement, even if it's not necessary``bash`
$ npm i -S html-body-scroll-lockOR
$ yarn add html-body-scroll-lock
`js
import { lock, unlock } from 'html-body-scroll-lock'
lock()
unlock()
`
`js
import { lock, unlock } from 'html-body-scroll-lock'
const targetElement = document.querySelector('#someElementId')
lock(targetElement)
unlock(targetElement)
`
> The targetElement` is not required on the PC and Android.