willmcpo / body-scroll-lock

Body scroll locking that just works with everything 😏

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using logical css property instead of padding-right

functionalDev opened this issue · comments

Current

For the option reserveScrollBarGap a padding-right is set on document.body, which is not considering the flow/writing direction (css property direction)

Proposed

Instead of setting the padding-right the corresponding logical css-property is set on document.body: padding-inline-end