← I Deleted My Scroll-Lock Library's Ugly Hack. `scrollbar-gutter` Replaces It.
Playground

scrollbar-gutter — interactive playground

preview

Edits run in a sandbox in your browser — nothing is saved and nothing leaves the page.