tuax/tua-body-scroll-lock

feat: setOverflowHiddenPc make optional

BekStar7 opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
Some moments, I don't need to use setOverflowHiddenPc. Because it handles another function sometimes

Describe the solution you'd like
The ability to pass an argument to it as an option, like
lock(el, { reserveScrollBarGap: true })

Describe alternatives you've considered
You can do like a body-lock

Thanks in advance

Examples, please?

We set reserveScrollBarGap true by default, feel free to reopen~