Prevent a page from scrolling while a dialog is open
AI Summary1 min read
TL;DR
Chrome 144's update to overscroll-behavior now works on non-scrollable scroll containers, fixing the long-standing issue of preventing page scroll when a dialog is open.
Tags
Linkscss propertiesdialog
Chrome 144 features a small change to
overscroll-behavior: it now also works on non-scrollable scroll containers. While this change might seem trivial, it fixes an issue developers have been dealing with for ages: prevent a page from
…
Prevent a page from scrolling while a dialog is open originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.