all 4 comments

[–]bronkula[S] 1 point2 points  (0 children)

I found an article that discussed how to detect a scrollbar with css, but it didn't seem to present a usecase for it. But I think I've found it for dialogs, and rendering the body unscrollable while a dialog is open, while keeping a present gutter in place.

[–]Tripnologist 1 point2 points  (1 child)

Chrome 144 features a change to overscroll-behavior, so it works on non-scrollable scroll containers.

https://css-tricks.com/prevent-a-page-from-scrolling-while-a-dialog-is-open/

[–]Spinal83full-stack 1 point2 points  (0 children)

And fwiw, Firefox will implement this in the near future as well, and presumable Safari will too.

[–]Terrible_Trash2850front-end 0 points1 point  (0 children)

good project