I’m trying to disable the html/body scrollbar of the parent while I’m using a lightbox. The main word here is disable. I do not want to hide it with overflow: hidden;
.
The reason for this is that overflow: hidden
makes the site jump and take up the area where the scroll was.
I want to know if its possible to disable a scrollbar while still showing it.